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.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 1/6/15, 8:47 AM|
|Seen: 2020 times|
|Last updated: 3/16/15, 8:10 AM|