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.

getLogLevel
LogLevel getLogLevel()

Gets the minimum log level used for stdout/stderr logging.

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, string mod, string func, string file, int line)
logCritical
void logCritical(S fmt, T args, string mod, string func, string file, int line)
logDebug
void logDebug(S fmt, T args, string mod, string func, string file, int line)
logDebugV
void logDebugV(S fmt, T args, string mod, string func, string file, int line)
logDiagnostic
void logDiagnostic(S fmt, T args, string mod, string func, string file, int line)
logError
void logError(S fmt, T args, string mod, string func, string file, int line)

Logs a message.

logException
void logException(Throwable exception, string error_description, string mod, string func, string file, int line)

Logs an exception, including a debug stack trace.

logFatal
void logFatal(S fmt, T args, string mod, string func, string file, int line)
logInfo
void logInfo(S fmt, T args, string mod, string func, string file, int line)
logTrace
void logTrace(S fmt, T args, string mod, string func, string file, int line)
logWarn
void logWarn(S fmt, T args, string mod, string func, string file, int line)

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