theKernel 10.0
|
MkLogFileC - the class known as lfl or log-file is used to control the target of the logging-output … More...
Public Member Functions | |
new MkLogFileC | Next () |
C#: → C-API get next instance from linked-list of MkLogFileS type | |
new MkLogFileC | Prev () |
C#: → C-API get previous instance from linked-list of MkLogFileS type | |
MkLogFileC (MkObjectC fmtobj, string file) | |
CONSTRUCTOR. | |
void | WriteC (string text) |
C#: → C-API write to log-file … | |
string | GetFile () |
C#: → C-API get the log-file … | |
![]() | |
delegate void | MkObjectDeleteSCB (string typeName, int typeHdl, int objHdl) |
implements the csmkkernel API object: public version from MkObjectDeleteSCB as method | |
void | ErrorCheck (MkErrorE err) |
bool | Check () |
string | ToNameOfClass () |
C#: → C-API Class-Slot - returns the C#-Class-Name of the obj as string | |
void | HandleDelete () |
C#: → C-API Handle-Delete-Slot - delete a netObj from handle-storage … | |
bool | HandleExists () |
C#: → C-API check if obj has already a handle defined… | |
Int32 | HandleGet () |
C#: → C-API Handle-Get-Slot - returns a export-hdl to the MkObjectC useable for external storage | |
Int32 | HandleGetOfType () |
C#: → C-API Export-Slot - returns typeHdl of the obj . | |
Int32 | HandleGetOr0 () |
C#: → C-API return export-hdl or 0 in not created… | |
MkObjectC | Next () |
C#: → C-API get next instance from linked-list of MkObjectS type | |
MkObjectC | Prev () |
C#: → C-API get previous instance from linked-list of MkObjectS type | |
void | DbgDump (string message="var", [CallerMemberName]string callfunc=null) |
C#: → C-API debug: Dump a instance to stderr with LNG and MQ internal data… | |
void | DbgL (string message, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0) |
C#: → C-API debug: write a instance-marker to the MkLogFileC (default: stderr) using the fmtobj as prefix … | |
void | DbgLogC ([CallerMemberName]string callfunc=null) |
C#: → C-API debug: write a short-obj-summary to MkLogFileC (default: stderr) … | |
void | DbgO ([CallerMemberName]string callfunc=null) |
C#: → C-API debug: write the object-details to MkLogFileC (default: stderr) … | |
void | DbgSTACK (int skip=0, int num=-1, [CallerMemberName]string callfunc=null) |
C#: → C-API debug: write the stack-trace to MkLogFileC (default: stderr) … | |
void | LogC (string message, int debug=0, [CallerMemberName]string callfunc=null) |
C#: → C-API write a logging-message to MkLogFileC (default: stderr) using the internal format … | |
void | LogHEX (string callfunc, byte[] data) |
C#: → C-API log binaray data as HEX into the MkLogFileC (default: stderr) … | |
void | Log (MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0) |
C#: → C-API Log-Slot - log a summary of an object to the MkLogFileC (default: stderr) target … | |
void | LogLong (MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0) |
C#: → C-API log the MkObjectS verbose into the MkLogFileC (default: stderr) … | |
void | LogShort (MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0) |
C#: → C-API log the MkObjectS into the MkLogFileC (default: stderr) … | |
void | LogType (MkObjectC fmtobj=null, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0) |
C#: → C-API log the tyoe of the MkObjectS into the MkLogFileC (default: stderr) … | |
MkErrorC | ErrorCatch (Exception exception=null, [CallerMemberName]string callfunc=null) |
C#: → C-API convert a programming-language-error into an csmkkernel error … | |
MkErrorC | ToError () |
C#: → C-API Error-Slot - return an error-object pre initialized with obj data. | |
bool | IsNull () |
C#: → C-API ckeck if the object is null | |
string | ToName () |
C#: → C-API Info-Slot - returns brief information about the obj as a string | |
string | ToNameOfType () |
C#: → C-API Type-Slot - returns the LibMkKernel-Type-Name of the obj as a string | |
override string | ToString () |
C#: → C-API String-Slot - returns the string representation of the inst … | |
int | RefGet () |
MkRefGetP | |
void | SysKill (int pid, int signal) |
MkSysKill | |
int | SysGetPid () |
MkSysGetPid | |
void | Dispose () |
C#: → C-API Dispose-Slot - untie the connection between the Native-C#-Instance and the csmkkernel-Instance. | |
void | Delete () |
C#: → C-API Delete-Slot - delete an instance. | |
Static Public Member Functions | |
static MkLogFileC | MkLogFileC_ObjNew (IntPtr hdl) |
new static MkLogFileC | HandleResolve (Int32 netHdl) |
C#: → C-API Handle-Resolve-Slot - return a MkLogFileC from netHdl or null if invalid… | |
new static MkLogFileC | Instances () |
C#: → C-API get head-instance from linked-list of MkLogFileS type … | |
new static MkLogFileC | GetNull () |
C#: → C-API Null-Slot - return a MkLogFileC typed NULL instance … | |
static MkLogFileC | Open (MkObjectC fmtobj, string file) |
C#: → C-API open the log-file in append mode … | |
![]() | |
static MkObjectC | MkObjectC_ObjNew (IntPtr hdl) |
static IntPtr | getOBJ (string cls, MkObjectC obj) |
static IntPtr | getOBJ_null_allow (MkObjectC obj) |
static MkObjectC | HandleResolve (Int32 netHdl) |
C#: → C-API Handle-Resolve-Slot - return a MkObjectC from netHdl or null if invalid… | |
static void | HandleDeleteByNetHdl (Int32 netHdl) |
C#: → C-API Handle-Delete-Slot - delete a netHdl from handle-storage … | |
static MkObjectC | Instances () |
C#: → C-API get head-instance from linked-list of MkObjectS type … | |
static MkObjectC | GetNull () |
C#: → C-API Null-Slot - return a MkObjectC typed NULL instance … | |
static void | DbgM (string message, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0) |
C#: → C-API debug: write a static-marker to the MkLogFileC (default: stderr) … | |
static int | SysHashI32 (string key, int length=-1) |
MkSysHashI32 | |
static string | SysHashSTR (string key, int length=-1) |
MkSysHashSTR | |
static void | DeleteCallbackCleanup (string ident) |
C#: → C-API cleanup the DeleteCallback installed with MkObjectDeleteCallbackSetup … | |
static void | DeleteCallbackSetup (string ident, MkObjectDeleteSCB callback=null, string filter=null) |
C#: → C-API Create/Delete the instance-delete-callback … | |
static int | getPId () |
static int | getTId () |
static string | getStackTrace (int level=2) |
static string | getCallerProc (int level=2) |
static int | getCallerLine (int level=2) |
static string | getCallerFile (int level=2) |
Static Protected Member Functions | |
static IntPtr | CTOR (MkObjectC fmtobj, string file) |
C#: → C-API open the log-file in append mode … | |
![]() | |
static object | atomObjNew (Type type, ConstructorInfo ctor, IntPtr obj) |
static object | atomObjCreate (Type type, ConstructorInfo ctor, IntPtr obj) |
static IntPtr | atomSelfCreate (ConstructorInfo ctor, IntPtr obj, IntPtr env) |
static object | atomSelfNull (ConstructorInfo ctor) |
static void | atomSelfUnlink (IntPtr self, IntPtr env) |
static ConstructorInfo | getCtor (Type type) |
static string | Name (IntPtr mkrt, IntPtr obj) |
C#: → C-API Info-Slot - returns brief information about the obj as a string | |
Additional Inherited Members | |
![]() | |
MkObjectC (IntPtr obj) | |
MkObjectC () | |
virtual void | Dispose (bool disposing) |
Support IDisposable. | |
![]() | |
IntPtr | pmkrt = IntPtr.Zero |
![]() | |
![]() | |
![]() | |
IntPtr | hdl [get, set] |
IntPtr | hdl_null_allow [get, set] |
IntPtr | mkrt [get, set] |
MkLogFileC - the class known as lfl or log-file is used to control the target of the logging-output …
The logging-target is set direct by RuntimeLogTargetSet or using the class MkLogFileC.
The target is stored at the MkRuntimeC using a FILE-stream and can be set individually for each thread. The default is stderr.
possible values are:
value | decription | OS man-page |
---|---|---|
stdout | the standart output | stdio(3) |
stderr | the standart error output | stdio(3) |
fileName | an arbitary fileName | fopen(3) |
Definition at line 181 of file MkLogFileC.cs.
|
inlinestatic |
Definition at line 34 of file MkLogFileC.cs.