Logger

Base class for Fluent loggers

Constructors

this
this(string prefix)
Undocumented in source.

Members

Functions

close
void close()
Undocumented in source.
post
bool post(string tag, T record)

Pack the given record using MessagePack and write it with the current timestamp using $(D_PSYMBOL write).

post
bool post(string tag, SysTime time, T record)

Pack the given record using MessagePack and write it with the given timestamp using $(D_PSYMBOL write).

write
bool write(ubyte[] data)

Write an array of ubyte to the logger. Client code should generally use the post() functions of $(D_PSYMBOL Logger) instead of calling write() directly.

Properties

pendings
const(ubyte[]) pendings [@property getter]
Undocumented in source.

Variables

prefix_
string prefix_;
Undocumented in source.

Meta