vibe.core.log

Central logging facility for vibe.

Members

Classes

FileLogger
class FileLogger

Plain-text based logger for logging to regular files or stdout/stderr

HTMLLogger
class HTMLLogger

Logger implementation for logging to an HTML file with dynamic filtering support.

Logger
class Logger

Abstract base class for all loggers

SyslogLogger
class SyslogLogger(OutputStream)

A logger that logs in syslog format according to RFC 5424.

Enums

LogLevel
enum LogLevel

Specifies the log level for a particular log message.

SyslogFacility
enum SyslogFacility

Syslog facilities

Functions

deregisterLogger
void deregisterLogger(shared(Logger) logger)

Deregisters an active logger instance.

getLoggers
shared(Logger)[] getLoggers()

Returns a list of all registered loggers.

initializeLogModule
void initializeLogModule()
Undocumented in source. Be warned that the author may not have intended to support it.
log
void log(S fmt, T args)
logCritical
void logCritical(S fmt, T args)
logDebug
void logDebug(S fmt, T args)
logDebugV
void logDebugV(S fmt, T args)
logDiagnostic
void logDiagnostic(S fmt, T args)
logError
void logError(S fmt, T args)

Logs a message.

logException
void logException(Throwable exception, string error_description)

Logs an exception, including a debug stack trace.

logFatal
void logFatal(S fmt, T args)
logInfo
void logInfo(S fmt, T args)
logTrace
void logTrace(S fmt, T args)
logWarn
void logWarn(S fmt, T args)

Logs a message.

registerLogger
void registerLogger(shared(Logger) logger)

Registers a new logger instance.

setLogFile
void setLogFile(string filename, LogLevel min_level)

Sets a log file for disk file logging.

setLogFormat
void setLogFormat(FileLogger.Format fmt, FileLogger.Format infoFmt)

Sets the log format used for the default console logger.

setLogLevel
void setLogLevel(LogLevel level)

Sets the minimum log level to be printed using the default console logger.

Structs

LogLine
struct LogLine

Represents a single logged line

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.

Authors

Sönke Ludwig