tango.util.log.model.ILogger

License:
BSD style:

Version:
Initial release: May 2004

author:
Kris

abstract interface ILogger;


abstract @property bool enabled(Level level = Level.Fatal);
Is this logger enabed for the specified Level?

abstract void trace(const(char[]) fmt, ...);
Append a trace message

abstract void info(const(char[]) fmt, ...);
Append an info message

abstract void warn(const(char[]) fmt, ...);
Append a warning message

abstract void error(const(char[]) fmt, ...);
Append an error message

abstract void fatal(const(char[]) fmt, ...);
Append a fatal message

abstract @property const(char)[] name();
Return the name of this ILogger (sans the appended dot).

abstract @property Level level();
Return the Level this logger is set to

abstract @property ILogger level(Level l);
Set the current level for this logger (and only this logger).

abstract @property bool additive();
Is this logger additive? That is, should we walk ancestors looking for more appenders?

abstract @property ILogger additive(bool enabled);
Set the additive status of this logger. See isAdditive().

abstract ILogger append(Level level, lazy const(char[]) exp);
Send a message to this logger via its appender list.


Page generated by Ddoc. Copyright (c) 2004 Kris Bell. All rights reserved