The TLogWriter class writes arbitrary strings to a specified log file, prefixing them with date and time and optionally also with a prefix. Part of the logging framework for ICT Applications.
More...
|
string | LogtextPrefix [get, set] |
| this text is always printed in front of each line in the logging can include the current time and user etc More...
|
|
bool | SuppressDateAndTime [get, set] |
| Set to true to suppress the logging of date and time in log files (default= false). More...
|
|
The TLogWriter class writes arbitrary strings to a specified log file, prefixing them with date and time and optionally also with a prefix. Part of the logging framework for ICT Applications.
◆ TLogWriter()
Ict.Common.TLogWriter.TLogWriter |
( |
string |
LogfileName | ) |
|
|
inline |
constructor that tells where to write the logfile
- Parameters
-
LogfileName | where to write the logfile |
◆ CanWriteLogFile()
bool Ict.Common.TLogWriter.CanWriteLogFile |
( |
out String |
ALogFileMsg | ) |
|
|
inline |
◆ GetLogFileName()
static String Ict.Common.TLogWriter.GetLogFileName |
( |
| ) |
|
|
inlinestatic |
the name of the current logfile
- Returns
- the name of the current logfile
◆ Log() [1/2]
static void Ict.Common.TLogWriter.Log |
( |
ArrayList |
aList, |
|
|
bool |
isException |
|
) |
| |
|
inlinestatic |
log a list of messages
- Parameters
-
aList | the messages to log |
isException | if this is an exception, the logging output will look a bit different |
◆ Log() [2/2]
static void Ict.Common.TLogWriter.Log |
( |
string |
strMessage | ) |
|
|
inlinestatic |
Log message to the current logfile
- Parameters
-
◆ ResetStaticVariables()
static void Ict.Common.TLogWriter.ResetStaticVariables |
( |
| ) |
|
|
inlinestatic |
reset the static variables for each Web Request call.
◆ LogtextPrefix
string Ict.Common.TLogWriter.LogtextPrefix |
|
getset |
this text is always printed in front of each line in the logging can include the current time and user etc
◆ SuppressDateAndTime
bool Ict.Common.TLogWriter.SuppressDateAndTime |
|
getset |
Set to true to suppress the logging of date and time in log files (default= false).
The documentation for this class was generated from the following file: