Class Logger
Inheritance
System.Object
Logger
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: TimApi.dll
Syntax
Properties
LogDir
Declaration
public static string LogDir { get; set; }
Property Value
Type |
Description |
System.String |
|
LogRetainArchiveCount
Number of log file archives to keep before deleting them. Use 0 to disable delete
Declaration
public static int LogRetainArchiveCount { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
ArchiveLogsInZip(Logger.ArchiveMode)
Declaration
public static bool ArchiveLogsInZip(Logger.ArchiveMode am)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Dispose()
Declaration
public static void Dispose()
entering(String, String)
Declaration
public void entering(string sourceClass, string sourceMethod)
Parameters
Type |
Name |
Description |
System.String |
sourceClass |
|
System.String |
sourceMethod |
|
entering(String, String, Object[])
Declaration
public void entering(string sourceClass, string sourceMethod, params object[] parameters)
Parameters
Type |
Name |
Description |
System.String |
sourceClass |
|
System.String |
sourceMethod |
|
System.Object[] |
parameters |
|
exiting(String, String)
Declaration
public void exiting(string sourceClass, string sourceMethod)
Parameters
Type |
Name |
Description |
System.String |
sourceClass |
|
System.String |
sourceMethod |
|
exiting(String, String, Object)
Declaration
public void exiting(string sourceClass, string sourceMethod, object result)
Parameters
Type |
Name |
Description |
System.String |
sourceClass |
|
System.String |
sourceMethod |
|
System.Object |
result |
|
flush()
Declaration
Flush()
Declaration
public static void Flush()
FlushLogs()
Declaration
public static void FlushLogs()
getLogger(String)
Declaration
public static Logger getLogger(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
info(String)
Declaration
public void info(string msg)
Parameters
Type |
Name |
Description |
System.String |
msg |
|
Init()
Declaration
public static void Init()
isLoggable(Level)
Declaration
public bool isLoggable(Level level)
Parameters
Type |
Name |
Description |
Level |
level |
|
Returns
Type |
Description |
System.Boolean |
|
log(Level, Byte[], Int32)
Declaration
public void log(Level level, byte[] data, int size)
Parameters
Type |
Name |
Description |
Level |
level |
|
System.Byte[] |
data |
|
System.Int32 |
size |
|
log(Level, String)
Declaration
public void log(Level level, string msg)
Parameters
Type |
Name |
Description |
Level |
level |
|
System.String |
msg |
|
log(Level, String, Byte[], Int32)
Declaration
public void log(Level level, string s, byte[] data, int size)
Parameters
Type |
Name |
Description |
Level |
level |
|
System.String |
s |
|
System.Byte[] |
data |
|
System.Int32 |
size |
|
log(Level, String, Exception)
Declaration
public void log(Level level, string msg, Exception thrown)
Parameters
Type |
Name |
Description |
Level |
level |
|
System.String |
msg |
|
System.Exception |
thrown |
|
log(Level, String, String)
Declaration
public void log(Level level, string msg, string msg1)
Parameters
Type |
Name |
Description |
Level |
level |
|
System.String |
msg |
|
System.String |
msg1 |
|
log(Level, String, String[])
Declaration
public void log(Level level, string msg, string[] parameters)
Parameters
Type |
Name |
Description |
Level |
level |
|
System.String |
msg |
|
System.String[] |
parameters |
|
LogMethod(String, String, Logger.CodeBlock, Object[])
Declaration
public void LogMethod(string classname, string methodname, Logger.CodeBlock code, params object[] parameters)
Parameters
Type |
Name |
Description |
System.String |
classname |
|
System.String |
methodname |
|
Logger.CodeBlock |
code |
|
System.Object[] |
parameters |
|
LogMethod<T>(String, String, Logger.CodeBlock<T>, Object[])
Declaration
public T LogMethod<T>(string classname, string methodname, Logger.CodeBlock<T> code, params object[] parameters)
Parameters
Type |
Name |
Description |
System.String |
classname |
|
System.String |
methodname |
|
Logger.CodeBlock<T> |
code |
|
System.Object[] |
parameters |
|
Returns
Type Parameters
PrintThreadProc()
Declaration
public static void PrintThreadProc()
PrintToFile(String)
Declaration
public static void PrintToFile(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
|
setLevel(Level)
Declaration
public void setLevel(Level newLevel)
Parameters
Type |
Name |
Description |
Level |
newLevel |
|
SetLevel(String, String)
Declaration
public static void SetLevel(string module, string sNewLevel)
Parameters
Type |
Name |
Description |
System.String |
module |
|
System.String |
sNewLevel |
|
throwexit(String, String)
Declaration
public void throwexit(string sourceClass, string sourceMethod)
Parameters
Type |
Name |
Description |
System.String |
sourceClass |
|
System.String |
sourceMethod |
|