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
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
[Obsolete("Use terminal settings to set this parameter per terminal instance.")]
public static string LogDir { get; set; }
Property Value
Type |
Description |
System.String |
|
LogRetainArchiveCount
Declaration
[Obsolete("Use terminal settings to set this parameter per terminal instance.")]
public static int LogRetainArchiveCount { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
ArchiveLogsInZip(Logger.ArchiveMode)
Declaration
[Obsolete("Use terminal settings to set this parameter per terminal instance.")]
public static bool ArchiveLogsInZip(Logger.ArchiveMode am)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Dispose()
Declaration
[Obsolete("No longer supported!")]
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 |
|
System.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
[Obsolete("No longer supported!")]
public static void Flush()
FlushLogs()
Declaration
[Obsolete("No longer supported!")]
public static void FlushLogs()
getLogger(String)
Declaration
[Obsolete("No longer supported!")]
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
[Obsolete("No longer supported!")]
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, 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 message, Exception thrown)
Parameters
Type |
Name |
Description |
Level |
level |
|
System.String |
message |
|
System.Exception |
thrown |
|
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
[Obsolete("No longer supported!")]
public static void PrintThreadProc()
PrintToFile(String)
Declaration
[Obsolete("No longer supported!")]
public static void PrintToFile(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
|
SetLevel(String, String)
Declaration
[Obsolete("Use terminal settings to set this parameter per terminal instance.")]
public static void SetLevel(string module, string sNewLevel)
Parameters
Type |
Name |
Description |
System.String |
module |
|
System.String |
sNewLevel |
|