]> mj.ucw.cz Git - libucw.git/commit
Logging: Introduced struct log_msg.
authorMartin Mares <mj@ucw.cz>
Fri, 13 Feb 2009 18:47:00 +0000 (19:47 +0100)
committerMartin Mares <mj@ucw.cz>
Fri, 13 Feb 2009 18:47:00 +0000 (19:47 +0100)
commite4e9c9fbf717d89be923695603d0cd5fc6c40cfa
tree38565bd39e6322c7488c6dbb16e1325aa3bba9f1
parent9aa671e874bcd0b3d05cb9e74e3c80d96422e620
Logging: Introduced struct log_msg.

The logging handlers and filters are often interested in various properties
of the message in their raw form. I have modified the hooks to accept
a single pointer to `struct log_msg', which contains all needed information.

An immediate consequence is that we no longer need the calls to time() in
log-file, so a message is always timestamped at a single place when entering
the log machinery.
ucw/log-file.c
ucw/log-syslog.c
ucw/log.c
ucw/log.h