Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

Setup log file in odoo config file

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
configurationlogconfiglogs
4 Réponses
93317 Vues
Avatar
Omar OUHARI

 

I correctly set the log file in odoo config file but i got nothing in the log file.
I dont know why.
this is lines that i put in config file :

...........
 logfile = /var/log/openerp/openerp-server.log
log_level = info

I also execute this commandes line:

bash#mkdir -p /var/log/openerp/
bash#touch /var/log/openerp/openerp-server.log
bash#chown openerp /var/log/openerp/openerp-server.log
bash#chmod 644 /var/log/openerp/openerp-server.log

Any help !!!!!!

0
Avatar
Ignorer
Sehrish

Why Odoo Config file: http://learnopenerp.blogspot.com/2019/10/odoo-configuration-file.html

Avatar
Zbik
Meilleure réponse

In V8 user=odoo, try this:

chown odoo  /var/log/openerp/openerp-server.log

and you add (or other handler):

log_handler = ["[':INFO']"]

2
Avatar
Ignorer
Avatar
Omar OUHARI
Auteur Meilleure réponse


I do this but still not working

ls -l commande send this information:

[user@localhost openerp ] # ls -l

-rw-r--r--. 1 odoo root 0 Jan 28 15:25 openerp-server.log

and ther is my odoo config:

[options]
; This is the password that allows database operations:
admin_password=#####
db_host=localhost
db_port=5432
db_user=######
db_password=#######
addons_path=/usr/lib/python2.7/site-packages/openerp-8.0_c7d8e97-py2.7.egg/openerp/addons/
logfile=/var/log/openerp/openerp-server.log
log_handler=["[':INFO']"]
log_level=info

 

and whene i execute systemctl status openerp.service i got that

.................

python /usr/local/bin/openerp-server -c /etc/openerp-server.conf --pid=/run/openerp/openerp-server.pid --syslog

...................

Any help please !!!!!

 

1
Avatar
Ignorer
Zbik

you drop --syslog and posibbly add --logfile /var/log/openerp/openerp-server.log

Omar OUHARI
Auteur

how can i do that

Zbik

I do not know what your system and install method, probably in /etc/init.d/odoo

Omar OUHARI
Auteur

done thanks for help.

Avatar
Erwin Zoer
Meilleure réponse

Perhaps useful for others because this question was asked a long time ago.

In your configuration file add the following lines:

# Logging
log_handler = werkzeug:WARNING, :INFO
log_level = info
logfile = /var/log/odoo/odoo.log
logrotate = True

(Change settings as you seem fit. The following URL provides a list of command line parameters which can be used in the configuration file as well: https://odoo-development.readthedocs.io/en/latest/admin/log-handler.html)

It's important that the user under which odoo runs has write permissions to the directory where the log files are stored. In my case it runs as user odoo16 member of group odoo16. So using sudo or as root create a log directory for odoo as follows:

# mkdir /var/log/odoo

# chown root:odoo16 /var/log/odoo

# chmod 775 /var/log/odoo

# ls -l /var/log

drwxrwxr-x 2 root odoo16 4096 Oct 28 16:54 odoo


The result should be as above. Next restart your odoo service, odoo16 in my case.

# systemctl restart odoo16


0
Avatar
Ignorer
Avatar
Hind Benessy
Meilleure réponse

please can you give more details i hve a same issue when i check my odoo status i got this error 

/odoo.service; disabled; vendor preset: enabled)
since Wed 2021-09-01 16:45:57 UTC; 36min ago

odoo/odoo-bin -c /etc/odoo-server.conf (code=exited, status=2)
=2)

 Started Odoo.
4541]: Usage: odoo-bin [options]
4541]: odoo-bin: error: The config file '/etc/odoo-server.conf' selected with -c/--config doesn't exist or is not readable, use -s/--save if you want to gen>
 odoo.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
 odoo.service: Failed with result 'exit-code'.


0
Avatar
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
Can I comment the lines inside the configuration file? Résolu
configuration config
Avatar
Avatar
1
avr. 25
7924
Is there a way to avoid bus.bus exception with out using webserver like Nginx or Apache ?
configuration logs odoo10
Avatar
0
juil. 20
4028
Where is the configuration file for ubuntu repository method install? Résolu
configuration installation config
Avatar
Avatar
Avatar
Avatar
Avatar
4
oct. 16
37084
More Detailed Odoo Logs? Résolu
logging log logs odoo-server.conf
Avatar
5
juil. 24
41601
How do you manage size of log directory ? Résolu
log size hack logs
Avatar
Avatar
Avatar
2
déc. 23
20919
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now