1
0
Fork 0

bringing log4py-1.3 into the main branch

git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/gnuviech.info/gnuviechadmin/trunk@85 a67ec6bc-e5d5-0310-a910-815c51eb3124
This commit is contained in:
Jan Dittberner 2004-12-26 12:53:50 +00:00
parent a7edeca826
commit dc0da570ab
20 changed files with 1519 additions and 0 deletions

View file

@ -0,0 +1,17 @@
To use mysql as logging database, please perform the following steps:
1. Create a database and table:
"mysql -u root -p < mysql.sql"
This will create a new database "syslog" and a table "logs"
2. Grant access to the log table to one or more users:
"mysql -u root -p"
"use syslog;"
"grant insert,select,update,delete on syslog.logs to log4py@localhost;"
3. If log4py@localhost is a new user, don't forget to set a password:
"mysqladmin -u log4py -p password mysecretpwd"

View file

@ -0,0 +1,25 @@
# Table structure for table `logs`
CREATE DATABASE syslog;
USE syslog;
CREATE TABLE logs (host varchar(32) default NULL,
facility varchar(10) default NULL,
priority varchar(10) default NULL,
level varchar(10) default NULL,
tag varchar(10) default NULL,
date date default NULL,
time time default NULL,
program varchar(15) default NULL,
msg text,
seq int(10) unsigned NOT NULL auto_increment,
PRIMARY KEY (seq),
KEY host (host),
KEY seq (seq),
KEY program (program),
KEY time (time),
KEY date (date),
KEY priority (priority),
KEY facility (facility)
) TYPE=MyISAM;