LoggerPro (1.0)

A simple, pluggable and modern logging framework for Delphi

Interface ILogAppender

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type ILogAppender = interface(IInterface)

Description

Interface implemented by all the classes used as appenders

Attributes
GUID['{58AFB557-C594-4A4B-8DC9-0F13B37F60CB}']

Hierarchy

  • IInterface
  • ILogAppender

Overview

Methods

Public procedure Setup;
Public procedure WriteLog(const aLogItem: TLogItem);
Public procedure TearDown;
Public procedure SetEnabled(const Value: Boolean);
Public function IsEnabled: Boolean;
Public procedure SetLogLevel(const Value: TLogType);
Public function GetLogLevel: TLogType;

Description

Methods

Public procedure Setup;

This method is internally called by LoggerPro to initialize the appender

Public procedure WriteLog(const aLogItem: TLogItem);

This method is called at each log item represented by TLogItem

The appender should be as-fast-as-it-can to handle the message, however each appender runs in a separated thread.

Public procedure TearDown;

This method is internally called by LoggerPro to deinitialize the appender

Public procedure SetEnabled(const Value: Boolean);

(Enable or disable the log appender. Is used internally by LoggerPro but must be implemented by each logappender. A simple if enabled then dolog is enough

Public function IsEnabled: Boolean;

(Returns if the logappender is currently enabled or not.

Public procedure SetLogLevel(const Value: TLogType);

(Set a custom log level for this appender. This value must be lower than the global LogWriter log level.

Public function GetLogLevel: TLogType;

(Get the loglevel for the appender.

Copyright 2016 Daniele Teti
Generated by PasDoc 0.14.0.