howto logger

Asked by ruddy32

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:
Last query:
Last reply:
Revision history for this message
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 !!!