:: com :: sun :: star :: logging ::

unpublished service SyslogHandler
Supported Interface
XLogHandler
Usage Restrictions
not published
Description
specifies a component implementing a log handler whose output channel is the syslog network protocol.

The handler will use the Encoding attribute of XLogHandler to determine how to encode strings before actually writing them to the output file.

The output is sent over UDP to the given Host and Port in RFC5424 format, in plaintext, with APPNAME "soffice" and facility USER. LogLevel::SEVERE becomes syslog's "error" severity, LogLevel::WARNING becomes syslog's "warning" severity, LogLevel::INFO and LogLevel::CONFIG become syslog's "notice" severity, and LogLevel::FINE and below become syslog's "debug" severity.

Since
OpenOffice 4.2
See also
XLogHandler::Encoding


Constructors' Summary
createWithSettings creates an instance of the log handler  
Constructors' Details
createWithSettings
createWithSettings( [in] sequence< ::com::sun::star::beans::NamedValue >  Settings )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
creates an instance of the log handler
Parameter Settings
contains the initial settings for the log handler

The following settings are recognized and supported:

Additionally, the following settings are required for this particular handler:

  • Host - the hostname of the syslog server
  • Port - the port of the syslog server

Throws
::com::sun::star::lang::IllegalArgumentException if Settings contains settings whose value is of the wrong type.

 
Top of Page