enhanced logging

This commit is contained in:
Yhael S
2023-08-26 21:00:02 -05:00
parent 56e25a9518
commit 9e44cbe9cc
2 changed files with 28 additions and 26 deletions

View File

@@ -2,17 +2,17 @@
# Main Configuration # # Main Configuration #
#--------------------------# #--------------------------#
# Odoo # Odoo
APP_ENV=fresh APP_ENV=local
INIT= INIT=
UPDATE= UPDATE=
LOAD=base,web LOAD=base,web
WORKERS=1 WORKERS=0
DEV_MODE=reload,qweb DEV_MODE=reload,qweb
DOMAIN=erp.odoocker.test DOMAIN=erp.odoocker.test
# Enterprise # Enterprise
GITHUB_USER= GITHUB_USER=yhaelopez
GITHUB_ACCESS_TOKEN= GITHUB_ACCESS_TOKEN=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
# Database # Database
ADMIN_PASSWD=odoo ADMIN_PASSWD=odoo
@@ -31,8 +31,9 @@ LIST_DB=True
DBFILTER=.* DBFILTER=.*
# Logging # Logging
LOG_LEVEL=info LOG_LEVEL=debug
LOG_HANDLER="[':INFO']" # Additional logs
LOG_HANDLER_LEVEL=INFO
# Nginx # Nginx
CORS_ALLOWED_DOMAIN="'http://external-domain.test'" CORS_ALLOWED_DOMAIN="'http://external-domain.test'"
@@ -62,7 +63,7 @@ PGADMIN_PASSWORD=odoo
PROJECT_NAME=odoocker PROJECT_NAME=odoocker
SUPPORT_EMAIL=mail@example.com SUPPORT_EMAIL=mail@example.com
# Containers Tags # Containers' Tags
ODOO_TAG=14.0 ODOO_TAG=14.0
POSTGRES_TAG=15.4 POSTGRES_TAG=15.4
NGINX_TAG=1.25.2 NGINX_TAG=1.25.2
@@ -126,12 +127,11 @@ SCREENCASTS=None
SCREENSHOTS=/tmp/odoo_tests SCREENSHOTS=/tmp/odoo_tests
# Logging # Logging
LOGFILE=
SYSLOG=False
LOG_HANDLER=${LOG_HANDLER}
LOG_DB=False
LOG_DB_LEVEL=info
LOG_LEVEL=${LOG_LEVEL} LOG_LEVEL=${LOG_LEVEL}
LOG_HANDLER=odoo.http.rpc.request:${LOG_HANDLER_LEVEL},odoo.http.rpc.response:${LOG_HANDLER_LEVEL},:${LOG_HANDLER_LEVEL},odoo.sql_db:${LOG_HANDLER_LEVEL}
LOG_DB_LEVEL=${LOG_LEVEL}
SYSLOG=False
LOGFILE=
# Email # Email
EMAIL_FROM=${EMAIL_FROM} EMAIL_FROM=${EMAIL_FROM}

View File

@@ -1,8 +1,14 @@
### Contents # Odoocker: The Ultimate Odoo Docker Framework
- [The Ultimate Odoo Docker Tool](#the-ultimate-odoo-docker-tool) Welcome to Odoocker, a game-changer in the world of Odoo Development and Deployment. This tool is meticulously crafted to revolutionize your experience with Odoo, ensuring simplicity, efficiency, and a top-tier development journey. And while its rooted in the principles of the Official Odoo Docker setup, it goes several steps beyond.
- [Why Odoocker Stands Out](#why-odoocker-stands-out)
- [Quick Setup Guide](#quick-setup-guide) **Best of all**, you don't need any prior knowledge of **Odoo** or **Docker** to start your journey with Odoocker.
Feel free to post a Pull Request to continue enhancing this project.
## Contents
- [Quick Setup Guide](#quick-setup-guide)
- [The `.env` File](#the-env-file) - [The `.env` File](#the-env-file)
- [Environment-based actions](#environment-based-actions) - [Environment-based actions](#environment-based-actions)
- [1. Fresh or Restore](#1-fresh-or-restore) - [1. Fresh or Restore](#1-fresh-or-restore)
@@ -23,15 +29,7 @@
- [PgAdmin](#pgadmin-container) - [PgAdmin](#pgadmin-container)
- [Deployment Process](#deployment-process) - [Deployment Process](#deployment-process)
# The Ultimate Odoo Docker Tool ## Why Odoocker Stands Out:
Welcome to Odoocker, a game-changer in the world of Odoo Development and Deployment. This tool is meticulously crafted to revolutionize your experience with Odoo, ensuring simplicity, efficiency, and a top-tier development journey. And while its rooted in the principles of the Official Odoo Docker setup, it goes several steps beyond.
**Best of all**, you don't need any prior knowledge of **Odoo** or **Docker** to start your journey with Odoocker.
Feel free to post a Pull Request to continue enhancing this project.
### Why Odoocker Stands Out:
1. **Minimalistic Server Approach**: In an era where less is more, we keep server clutter at bay. With Odoocker, you'll witness a decluttered server environment, stripped down to the bare essentials. This minimalism ensures optimal resource utilization, leading to faster response times, reduced chances of conflicts, and a smooth-running Odoo instance. 1. **Minimalistic Server Approach**: In an era where less is more, we keep server clutter at bay. With Odoocker, you'll witness a decluttered server environment, stripped down to the bare essentials. This minimalism ensures optimal resource utilization, leading to faster response times, reduced chances of conflicts, and a smooth-running Odoo instance.
@@ -78,10 +76,13 @@ This file is divided in sections, you most likely are going to focus on the `Mai
Sample `.env` file: Sample `.env` file:
``` ```
# Odoo # Odoo
UPDATE=custom_account_addon APP_ENV=debug
INIT= INIT=
UPDATE=my_custom_addon
LOAD=base,web LOAD=base,web
WORKERS=2 WORKERS=2
DEV_MODE=reload,qweb
DOMAIN=erp.odoocker.test
# Enterprise (GitHub User with access to Odoo Enterprise [https://github.com/odoo/enterprise] Repo) # Enterprise (GitHub User with access to Odoo Enterprise [https://github.com/odoo/enterprise] Repo)
GITHUB_USER=yhaelopez GITHUB_USER=yhaelopez
@@ -94,6 +95,7 @@ DB_PORT=5432
DB_NAME=my-odoo-db DB_NAME=my-odoo-db
DB_USER=odoo DB_USER=odoo
DB_PASSWORD=odoo DB_PASSWORD=odoo
LOAD_LANGUAGE=es_MX
... ...
``` ```