howto logger

Asked by ruddy32 on 2008-12-04

I cannot get log information in my log file using the following source code, why ?

logger = netsvc.Logger()
...
logger.notifyChannel("pricelist", netsvc.LOG_INFO, "oldName type '%s'." % type(oldName))
...

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
ruddy32
Solved:
2008-12-04
Last query:
2008-12-04
Last reply:
ruddy32 (sylvain.bonnemaison) said : #1

I don't understand, it do not work before but it does now. I don't change anything I restart the application many times without succes. And now it works. There is something strange !!!