Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
OpenXPKI::Server::Log(User Contributed Perl DocumentatOpenXPKI::Server::Log(3)

Name
       OpenXPKI::Server::Log - logging implementation for OpenXPKI

Description
       This is the logging layer of OpenXPKI. Mainly we	use Log::Log4perl.
       The important difference	is that	we replace the original	DBI appender
       with our	own appender which can handle some funny details of some
       special databases. Additionally our log function	do some	special	things
       to meet our requirements.

Functions
   new
       This function only accepts one parameter	- "CONFIG".  "CONFIG" includes
       the filename of the Log::Log4perl configuration.

   init
       is used by both new and re_init to initialize the Log4perl objects

   re_init
       is just a fancier name for init,	is called in the forked	child at
       ForkWorkflowInstance.pm

   log
       This function creates a new log message it accept the following
       parameters:

       o   PRIORITY (debug, info, warn,	error, fatal)

       o   FACILITY (auth, audit, monitor, system, workflow)

	   It is possible to specify more than one facility by passing an
	   array reference here.

       o   MESSAGE (normal text	string)

       o   MODULE (overwrites the internally determined	caller)	- optional

       o   FILENAME (overwrites	the internally determined caller) - optional

       o   LINE	(overwrites the	internally determined caller - optional)

       Default is "system.fatal: [OpenXPKI] undefined message".

   debug
       Shortcut	to "log" that logs a message with "PRIORITY => "debug"".

       Positional parameters:

       o   $message log	message

       o   $facility the logging facility - optional, default: "monitor"

   info
       Shortcut	to "log" that logs a message with "PRIORITY => "info"".

       Similar to "debug".

   warn
       Shortcut	to "log" that logs a message with "PRIORITY => "warn"".

       Similar to "debug".

   error
       Shortcut	to "log" that logs a message with "PRIORITY => "error"".

       Similar to "debug".

   fatal
       Shortcut	to "log" that logs a message with "PRIORITY => "fatal"".

       Similar to "debug".

perl v5.24.1			  2017-07-03	      OpenXPKI::Server::Log(3)

Name | Description | Functions

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=OpenXPKI::Server::Log&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help