Oak::IO::Log::Syslog - Oak interface to Sys::Syslog


NAME

Oak::IO::Log::Syslog - Oak interface to Sys::Syslog


DESCRIPTION

This component implements an interface with the Sys::Syslog perl module. It is a component, so you can save its properties in a xml file (probably of a datamodule);


HIERARCHY

Oak::Object

Oak::Persistent

Oak::Component

Oak::IO::Log

Oak::IO::Log::Syslog


PROPERTIES

Whenever you change any of this properties, the log will be closed and then opened again.

P.S.: Pass this properties when creating a object

ident
Identification of the log. Usually the name of the application

logopt
contains zero or more of the words pid, ndelay, cons, nowait see Sys::Syslog for more info

facility
specifies the part of the system


METHODS

log(PRIORITY, MESSAGE, ARGS)
This function will call syslog with the given parameters. See Sys::Syslog for more info


RESTRICTIONS

As Sys::Syslog is not object oriented, and there is no way of getting a reference to the current syslog options. You can use just one Oak::IO::Log::Syslog object per application. Or else you will get the messages of one object falling into other log.


COPYRIGHT

Copyright (c) 2001 Daniel Ruoso <daniel@ruoso.com>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

 Oak::IO::Log::Syslog - Oak interface to Sys::Syslog