openerp-web.cfg log.access_file and log.error_file

Asked by John Chen

Hi OpenERP Team

I have some questions about openerp-web.cfg:

Details:
1. There are 2 openerp-web.cfg files in openerp program files folders:
- program files/openerp 6.0/web/conf/openerp-web.cfg
- program files/openerp 6.0/web/doc/openerp-web.cfg

2. Inside openerp-web.cfg it have lines which is commented / disabled:
- # log.access_file = "/var/log/openerp/access.log"
- # log.error_file = "/var/log/openerp/error.log"

Questions:
1. How can i enable the log.access_file and log.error_file? do i have to change the value inside log.access_file and log.error_file?
2. What will happen if i enable log.access_file and log.error_file?
3. What is the different between openerp-web.cfg in folder conf and doc?

Thank You
Regards,

John Chen

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Web Client Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Nhomar - Vauxoo (nhomar) said :
#1

1. How can i enable the log.access_file and log.error_file? do i have to change the value inside log.access_file and log.error_file?

>> Just uncomment them taking of the "#" put on path one valid path to an existing file (it doesn't create automatically).

2.- What will happen if i enable log.access_file and log.error_file?

>> All output will be written on the, exactly as any program :-s

3. What is the different between openerp-web.cfg in folder conf and doc?

>> Nothing one is backup of other, the default one is what is in doc/

Revision history for this message
John Chen (john-chen2011) said :
#2

Thanks Nhomar Hernandez

I have tried it and it works well. you are awesome.

And can i know what is the different between server.environment = 'development' and server.environment = 'production'? Thanks

Thank you,
Regards,

John Chen

Revision history for this message
Nhomar - Vauxoo (nhomar) said :
#3
Revision history for this message
John Chen (john-chen2011) said :
#4

Thanks Nhomar Hernandez

1. Let's say if i have a company that have around 40-50 users using OpenERP which server.environment is best for it? development or production or staging? Thanks

I have read it but still not quite sure about which is the best for it.

Thanks

John Chen

Can you help with this problem?

Provide an answer of your own, or ask John Chen for more information if necessary.

To post a message you must log in.