|
NameOpenXPKI::Server::Log::Appender::DatabaseDescriptionThis class implements an appender for Log4perl that writes messages to the database. It uses the internal DBI layer and runs inside the transaction model, so messages are only persisted when the "outer" layer properly commits the transaction.Opposite to the default DBI Appender, the table layout is fixed and you can only control the layout of the message that is written. In the default setup, this class is used to write the "Technical Log" for the workflow views but you can use it for any other purpose, too. ConfigurationLog4perl Basic ConfigThe minimal configuration requires only the layout class, the default layout is to log the message only:log4perl.appender.Application = OpenXPKI::Server::Log::Appender::Database log4perl.appender.Application.layout = Log::Log4perl::Layout::PatternLayout Additional layout specifications can be given, depending on the used layout class. Log4perl Optional Parameters
DatabaseSchemaCREATE TABLE IF NOT EXISTS `application_log` ( `application_log_id` bigint(20) unsigned NOT NULL, `logtimestamp` decimal(20,6) DEFAULT NULL, `workflow_id` decimal(49,0) NOT NULL, `priority` int(3) DEFAULT '999', `category` varchar(255) NOT NULL, `message` longtext ) ENGINE=InnoDB DEFAULT CHARSET=utf8; Fields
Visit the GSP FreeBSD Man Page Interface. |