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

Overview

Methods

Public class procedure SetLevel(loggingLevel: LoggingLevel);
Public procedure Debug(message: string);
Public procedure Info(message: string);
Public procedure Warn(message: string);
Public procedure Error(message: string);
Public procedure Error(message: string; e: Exception);
Public procedure Error(e: Exception);
Public constructor GetLogger(clazz: TClass);
Public constructor GetLogger(loggerName: string);
Public destructor Destroy; override;

Description

Methods

Public class procedure SetLevel(loggingLevel: LoggingLevel);

Update the global logging level.

Public procedure Debug(message: string);

Log a debug message.

Public procedure Info(message: string);

Log an info message.

Public procedure Warn(message: string);

Log a warn message.

Public procedure Error(message: string);

Log a error message.

Public procedure Error(message: string; e: Exception);

Log a error message and an exception.

Public procedure Error(e: Exception);

Log an exception.

Public constructor GetLogger(clazz: TClass);

Create a new logger named after a class.

Public constructor GetLogger(loggerName: string);

Create a new logger with a custom name.

Public destructor Destroy; override;

The destructor.


Generated by PasDoc 0.16.0.