Class Logger
Inheritance
System.Object
Logger
Assembly: TimApi.dll
Syntax
public class Logger : object
Fields
LogFilePrefix
Declaration
public readonly string LogFilePrefix
Field Value
Type |
Description |
System.String |
|
LoggerLogDir
Declaration
public readonly string LoggerLogDir
Field Value
Type |
Description |
System.String |
|
LoggerLogFileCountPerArchive
Declaration
public readonly int LoggerLogFileCountPerArchive
Field Value
Type |
Description |
System.Int32 |
|
LoggerLogLevel
Declaration
public Level LoggerLogLevel
Field Value
LoggerLogRetainArchiveCount
Declaration
public readonly int LoggerLogRetainArchiveCount
Field Value
Type |
Description |
System.Int32 |
|
LoggerLogRetainFileCount
Declaration
public readonly int LoggerLogRetainFileCount
Field Value
Type |
Description |
System.Int32 |
|
Name
Declaration
public readonly string Name
Field Value
Type |
Description |
System.String |
|
Properties
LogDir
Declaration
public static string LogDir { get; set; }
Property Value
Type |
Description |
System.String |
|
LogRetainArchiveCount
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 |
|
exception(String, Exception)
Declaration
public void exception(string message, Exception thrown)
Parameters
Type |
Name |
Description |
System.String |
message |
|
Exception |
thrown |
|
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
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 message)
Parameters
Type |
Name |
Description |
System.String |
message |
|
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 |
|
LevelFromString(String)
Declaration
public static Level LevelFromString(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
|
Returns
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 message)
Parameters
Type |
Name |
Description |
Level |
level |
|
System.String |
message |
|
log(Level, String, Exception)
Declaration
public void log(Level level, string message, Exception thrown)
Parameters
Type |
Name |
Description |
Level |
level |
|
System.String |
message |
|
Exception |
thrown |
|
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, String)
Declaration
public void log(Level level, string message, string message1)
Parameters
Type |
Name |
Description |
Level |
level |
|
System.String |
message |
|
System.String |
message1 |
|
log(Level, String, String[])
Declaration
public void log(Level level, string message, string[] parameters)
Parameters
Type |
Name |
Description |
Level |
level |
|
System.String |
message |
|
System.String[] |
parameters |
|
LogMethod(String, String, Level, Logger.CodeBlock, Object[])
Declaration
public void LogMethod(string classname, string methodname, Level levelException, Logger.CodeBlock code, params object[] parameters)
Parameters
Type |
Name |
Description |
System.String |
classname |
|
System.String |
methodname |
|
Level |
levelException |
|
Logger.CodeBlock |
code |
|
System.Object[] |
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, Level, Logger.CodeBlock<T>, Object[])
Declaration
public T LogMethod<T>(string classname, string methodname, Level levelException, Logger.CodeBlock<T> code, params object[] parameters)
Parameters
Type |
Name |
Description |
System.String |
classname |
|
System.String |
methodname |
|
Level |
levelException |
|
Logger.CodeBlock<T> |
code |
|
System.Object[] |
parameters |
|
Returns
Type 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(String, String)
Declaration
public static void SetLevel(string module, string sNewLevel)
Parameters
Type |
Name |
Description |
System.String |
module |
|
System.String |
sNewLevel |
|