BTVisualFTP 3.0

TLogger Class Reference

Provides a simple logging mechanism. More...

List of all members.

Public Member Functions

 TLogger (TComponent AOwner)
 Constructor.
 ~TLogger ()
 Destructor.
 Debug (const string MessageText)
 Write a message with DEBUG level.
 Info (const string MessageText)
 Write a message with INFO level.
 Warn (const string MessageText)
 Write a message with WARN level.
 Error (const string MessageText)
 Write a message with ERROR level.
 Fatal (const string MessageText)
 Write a message with FATAL level.

Public Attributes

TLogLevel LogLevel
 Log detail level.
TLogEvent OnLog
 Custom event handler for logging.

Detailed Description

Provides a simple logging mechanism.


Constructor & Destructor Documentation

TLogger::TLogger ( TComponent  AOwner)

Constructor.

References LogLevel.

TLogger::~TLogger ( )

Destructor.


Member Function Documentation

TLogger::Debug ( const string  MessageText)

Write a message with DEBUG level.

Parameters:
MessageTextThe log message.
TLogger::Error ( const string  MessageText)

Write a message with ERROR level.

Parameters:
MessageTextThe log message.

Referenced by TFtpConnection::Connect().

TLogger::Fatal ( const string  MessageText)

Write a message with FATAL level.

Parameters:
MessageTextThe log message.
TLogger::Info ( const string  MessageText)

Write a message with INFO level.

Parameters:
MessageTextThe log message.

Referenced by TFtpConnection::Connect().

TLogger::Warn ( const string  MessageText)

Write a message with WARN level.

Parameters:
MessageTextThe log message.

Referenced by TFtpConnection::Connect().


Member Data Documentation

Log detail level.

See also:
GetLogLevel For reading
SetLogLevel For writing

Referenced by TLogger().

Custom event handler for logging.

See also:
GetOnLog For reading
SetOnLog For writing
 All Classes Files Functions Variables Typedefs Enumerations