LibreOffice
LibreOffice 24.2 SDK API Reference
|
provides possibilities to send LogRecords to an arbitrary output channel. More...
import"XLogHandler.idl";
Exported Interfaces | |
interface | ::com::sun::star::lang::XComponent |
allows life time control for the handler More... | |
Public Member Functions | |
void | flush () |
flushes all buffered output of the handler More... | |
boolean | publish ([in] LogRecord Record) |
publish the given log record at the handler's output channel. More... | |
Public Member Functions inherited from XComponent | |
void | dispose () |
The owner of an object calls this method to explicitly free all resources kept by this object and thus break cyclic references. More... | |
void | addEventListener ([in] XEventListener xListener) |
adds an event listener to the object. More... | |
void | removeEventListener ([in] XEventListener aListener) |
removes an event listener from the listener list. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
Public Attributes | |
string | Encoding |
specifies MIME charset name for the encoding to be used by this handler More... | |
XLogFormatter | Formatter |
specifies the formatter to be used by this handler. More... | |
long | Level |
specifies the log level of this handler More... | |
provides possibilities to send LogRecords to an arbitrary output channel.
interface ::com::sun::star::lang::XComponent |
allows life time control for the handler
Disposing the handler effectively means closing the channel to which the handler forwards the log records.
void flush | ( | ) |
flushes all buffered output of the handler
Log handlers are allowed to buffer their output. Upon flush
being called, they must flush all their buffers.
boolean publish | ( | [in] LogRecord | Record | ) |
publish the given log record at the handler's output channel.
TRUE
if and only if the record was actually published. A handler will not publish a record if its log level doesn't meet the handler's log level, if the record is filtered, or if any other handler-specified restrictions apply.
|
attribute |
specifies MIME charset name for the encoding to be used by this handler
It depends on the concrete handler implementation whether or not this parameter is needed.
|
attribute |
specifies the formatter to be used by this handler.
|
attribute |
specifies the log level of this handler
Different handlers can have different log levels, which again might be different from the log level of the XLogger for which the handlers are used.