Odoo Help

Welcome!

This community 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.

0

How can i add print statement result to logfile?

By
samba
on 8/27/14, 9:40 AM 682 views

I unable to see total print statement data in terminal. I want to see this result in log file. Is it possible?

1

Prakash

--Prakash--
3173
| 5 4 7
Bikaner, India
--Prakash--

OpenERP Devloper at SunARC Technology

Prakash
On 8/27/14, 10:00 AM

In the Log File Print Output using the below code in python:-

    _logger = logging.getLogger(__name__)

   output = "sample result"

  _logger.exception('In the Log file to view the  %s', output)

 

Prakash, I am getting this error "Not enough space handle_pageBegin args=() (, ValueError('Not enough space\n handle_pageBegin args=()',), ) " while printing invoice. Can you please help me?. Refer this question "https://www.odoo.com/forum/help-1/question/invoice-print-giving-this-error-not-enough-space-handle-pagebegin-args-type-exceptions-valueerror-valueerror-not-enough-space-n-handle-pagebegin-args-traceback-object-at-0x7fdb1c796950-can-any-one-please-help-me-62861"

samba
on 9/24/14, 8:58 AM

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 8/27/14, 9:40 AM
Seen: 682 times
Last updated: 3/16/15, 8:10 AM