interface LogSinkInterface (View source)

Destination for formatted debug output.

The counterpart of {\CNIC\LoggerInterface::format()}: the logger decides what the debug record looks like, a sink decides where it goes. Implement this to route SDK debug output into a file, a PSR-3 logger or a host application's own log without reimplementing a brand's format — see {\CNIC\AbstractClient::setLogSink()}.

Methods

void
write(string $message)

Write one formatted debug record.

Details

void write(string $message)

Write one formatted debug record.

Parameters

string $message

Formatted debug record as returned by LoggerInterface::format()

Return Value

void