FluentLogger

$(D_PSYMBOL FluentLogger) is a $(D_PSYMBOL Fluentd) client

Constructors

this
this(string prefix, Configuration config)

Constructs a new $(D_PSYMBOL FluentLogger) instance using the given $(D_PSYMBOL Configuration).

Destructor

~this
~this()

Destructor.

Members

Functions

close
void close()

Flush the remaining data in the buffer and close the connection to the remote fluent host.

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]

Structs

Configuration
struct Configuration

FluentLogger configuration

Inherited Members

From Logger

prefix_
string prefix_;
Undocumented in source.
pendings
const(ubyte[]) pendings [@property getter]
Undocumented in source.
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.

Meta