On Nov 15, 10:51 pm, PyDevler <[EMAIL PROTECTED]> wrote:
> How I performed this, was
> using the standard pylons config, which uses the python config for

I have attached my config, maybe there is something missing here.

Excerpt from production.ini
---------------------------------------

# Logging configuration
[loggers]
keys = root, helloworld

[handlers]
keys = console, syslog, logfile

[formatters]
keys = generic, syslog, logfile

[logger_root]
level = INFO
handlers = console

[logger_helloworld]
level = DEBUG
handlers =
qualname = course

[handler_syslog]
class=handlers.SysLogHandler
args=('/dev/log', handlers.SysLogHandler.LOG_USER)
level = NOTSET
formatter=syslog

[handler_logfile]
class=handlers.RotatingFileHandler
main_dir=/var/local/xyz
args=('%(main_dir)s/log/math0010.log', 'a', 1048576, 0)
level=INFO
formatter=logfile

[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = logfile

[formatter_generic]
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %
(message)s
datefmt = %H:%M:%S

[formatter_syslog]
format = [%(clientip)s]:%(module)s[%(process)d]:%(message)s

[formatter_logfile]
format = %(asctime)s [%(clientip)s]:%(module)s[%(process)d]:%
(message)s
datefmt = %H:%M:%S

--

Hatem
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to