vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Class FileLogger

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

class FileLogger
  : Logger ;

Constructors

NameDescription
this (info_file, diag_file)
this (filename)

Fields

NameTypeDescription
format FileLogger.Format
infoFormat FileLogger.Format
useColors boolUse escape sequences to color log output.
minLevel LogLevel
multilineLogger boolWhether the logger can handle multiple lines in a single beginLine/endLine.

Methods

NameDescription
beginLine (msg)
endLine () Finalizes a log line.
put (text) Writes part of a log line message.
acceptsLevel (value)
beginLine (line_info) Starts a new log line.
log (line) Legacy logging interface relying on dynamic memory allocation.

Enums

NameDescription
Format The log format used by the FileLogger
Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

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