Class TLogger
Unit
Declaration
type TLogger = class(TObject)
Description
This class provides the actual logging functionality.
Use TLogger.SetLevel to set the logging level.
Hierarchy
- TObject
- TLogger
Overview
Methods
class procedure SetLevel(loggingLevel: LoggingLevel); |
|
procedure Debug(message: string); |
|
procedure Info(message: string); |
|
procedure Warn(message: string); |
|
procedure Error(message: string); |
|
procedure Error(message: string; e: Exception); |
|
procedure Error(e: Exception); |
|
constructor GetLogger(clazz: TClass); |
|
constructor GetLogger(loggerName: string); |
|
destructor Destroy; override; |
Description
Methods
class procedure SetLevel(loggingLevel: LoggingLevel); |
|
Update the global logging level. |
procedure Debug(message: string); |
|
Log a debug message. |
procedure Info(message: string); |
|
Log an info message. |
procedure Warn(message: string); |
|
Log a warn message. |
procedure Error(message: string); |
|
Log a error message. |
procedure Error(message: string; e: Exception); |
|
Log a error message and an exception. |
procedure Error(e: Exception); |
|
Log an exception. |
constructor GetLogger(clazz: TClass); |
|
Create a new logger named after a class. |
constructor GetLogger(loggerName: string); |
|
Create a new logger with a custom name. |
destructor Destroy; override; |
|
The destructor. |
Generated by PasDoc 0.16.0.