ae.sys.log

Logging support.

Members

Aliases

ConsoleLogger
alias ConsoleLogger = RCClass!CConsoleLogger
Undocumented in source.
FileAndConsoleLogger
alias FileAndConsoleLogger = RCClass!CFileAndConsoleLogger
Undocumented in source.
FileLogger
alias FileLogger = RCClass!CFileLogger
Undocumented in source.
Logger
alias Logger = RCClass!CLogger
Undocumented in source.
MultiLogger
alias MultiLogger = RCClass!CMultiLogger
Undocumented in source.
NullLogger
alias NullLogger = RCClass!CNullLogger
Undocumented in source.
RawFileLogger
alias RawFileLogger = RCClass!CRawFileLogger
Undocumented in source.
consoleLogger
alias consoleLogger = rcClass!CConsoleLogger
Undocumented in source.
fileAndConsoleLogger
alias fileAndConsoleLogger = rcClass!CFileAndConsoleLogger
Undocumented in source.
fileLogger
alias fileLogger = rcClass!CFileLogger
Undocumented in source.
multiLogger
alias multiLogger = rcClass!CMultiLogger
Undocumented in source.
nullLogger
alias nullLogger = rcClass!CNullLogger
Undocumented in source.
rawFileLogger
alias rawFileLogger = rcClass!CRawFileLogger
Undocumented in source.

Classes

CConsoleLogger
class CConsoleLogger

Logs to the console (standard error).

CFileAndConsoleLogger
class CFileAndConsoleLogger

Logs to a file and the console.

CFileLogger
class CFileLogger

Basic file logger.

CLogger
class CLogger

Base logger class.

CMultiLogger
class CMultiLogger

Logs to several other loggers.

CNullLogger
class CNullLogger

Logs to nowhere.

CRawFileLogger
class CRawFileLogger

File logger without formatting.

Functions

createLogger
Logger createLogger(string name)

Create a logger depending on whether -q or --quiet was passed on the command line.

createLogger
Logger createLogger(string name, string target)

Create a logger using a user-supplied log directory or transport.

Manifest constants

TIME_FORMAT
enum TIME_FORMAT;

Default time format used for timestamps.

Variables

logDir
string logDir;

Directory where log files will be saved. The default is "logs".

quiet
bool quiet;

True if "-q" or ~--quiet" is present on the command line.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <ae@cy.md> Simon Arlott