[Klone-users] setting log level
Mark Richards
mark.richards at massmicro.com
Thu Sep 27 13:45:21 EDT 2007
Is there a way to set klone's log level programmatically instead of via
the klone.conf file?
I find that setting -d at the commandline works, but
debug("whatever")
does not get sent to the logger (or the console), but
warn("whatever")
is sent to the logger.
I am trying to debug it and would like to play with the log level
settings while the klone daemon is running.
/mark
ENVIRONMENT:
Klone 2.0.0.rc7
2.6.18-8.1.3.el5
gcc-cris -v
Reading specs from /usr/local/cris/lib/gcc-lib/cris-axis-elf/3.2.1/specs
Configured with: /home/cris-dist-1.64/./gnu-toplev/configure
--enable-version-specific-runtime-libs --disable-nls
--target=cris-axis-elf --enable-languages=c,c++ --prefix=/usr/local/cris
Thread model: single
gcc version 3.2.1 Axis release R64/1.64
KLONE:
./kloned -d
server_list: app_http
allow_root: yes
log:
type: syslog
syslog:
facility: LOG_LOCAL0
app_http:
type: http
model: fork
addr:
type: IPv4
port: 8080
dir_root: /www
SYSLOG:
cat syslog.conf
# Log messages to the console.
*.debug;kern.none /dev/console
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
local0.*;*.info;mail.none;authpriv.none
/var/log/messages
# The authpriv file has restricted access.
authpriv.* /var/log/secure
# Log all the mail messages in one place.
mail.* /var/log/maillog
# Everybody gets emergency messages, plus log them on another
# machine.
*.emerg *
# Save mail and news errors of level err and higher in a
# special file.
uucp,news.crit /var/log/spooler
# Save boot messages also to boot.log
local7.* /var/log/boot.log
[root at AEM-10 /etc]3688#
More information about the klone-users
mailing list