Dave,
Fix your typo here
> [loggers]
> keys=root,hdk1,hkd2
Should be hkd1 I believe, otherwise the config file is rejected by the
logging module.
> args=(('localhost', handlers.SYSLOG_UDP_PORT),
> handlers.SysLogHandler.LOG_USER)
LOG_USER is not a defined priority by default in syslog, unless
Kent Johnson wrote:
> dave selby wrote:
>
>> I was trying to get logging to report to Syslog, that failed so I
>> changed it to write to a file 'python.log' . When I execute my test
>> script 'python.log' appears but contains no messages and no error
>> messages are generated.
>>
>> Anybody any
dave selby wrote:
> I was trying to get logging to report to Syslog, that failed so I
> changed it to write to a file 'python.log' . When I execute my test
> script 'python.log' appears but contains no messages and no error
> messages are generated.
>
> Anybody any ideas as to what I am doing wro
I can't get the python 2.5.1 logging module to use your logging.conf,
can you create a simpler example?
dave selby wrote:
> I am trying to use the python logging module. At first glance it looks
> pretty complicated but having Ggooled a lot I have come up with a
> trial script of ...
>
> loggin
I am trying to use the python logging module. At first glance it looks
pretty complicated but having Ggooled a lot I have come up with a
trial script of ...
logging.config.fileConfig("logging.conf")
logger = logging.getLogger()
logger.critical("Test Message")
Where 'loggin.conf' contains ...
[l