Odoo Help


1 答案

Yenthe Van Ginneken 比利时

--Yenthe Van Ginneken--
| 10 9 12
Turnhout, 比利时
--Yenthe Van Ginneken--

Yenthe Van Ginneken 比利时
2014/11/7 上午10:54

So you want to write in to the log file from Python when something executes?

You can simply use the default logging module from Python for this, you only need to import logging in your Python file.
A detailed example can be found here: 

A second way would be to use print statements to write to your stdout.
NOTE: you HAVE to start your server with the --debug parameter to show the debug logs though.

2 注释
Guillaume Seran 法国
2014/11/7 上午11:19

Thank you !!

Oocademy, Yenthe Van Ginneken 比利时
2014/11/9 上午5:47

No problem, best of luck!

Keep Informed
0 关注者(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now