Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
HI every one in odoo-7 development, i can see print statement output in console. How can i run odoo-8 server to see print output in console?. If not can any one suggest me a funciont like _logger.exception() in odoo-7 to debug my code in odoo-8, while developing module?
Hi, This will work depends on your log level in your configuration file.
_logger = logging.getLogger(__name__)
_logger.exception('Connection to the database failed''msg')
Log parameters for configuration file:
# file where the server log will be stored
logfile = None
# specify the level of the logging. Accepted values: info, debug_rpc, warn, test, critical, debug_sql, error, debug, debug_rpc_answer, notset
log_level = info
log_handler = [':INFO']
You can also give these parameters from terminal while starting your sever.
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 1/6/15, 8:47 AM|
|Seen: 2544 times|
|Last updated: 3/16/15, 8:10 AM|