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 #
#--------------------------#
# Odoo
APP_ENV=fresh
APP_ENV=local
INIT=
UPDATE=
LOAD=base,web
WORKERS=1
WORKERS=0
DEV_MODE=reload,qweb
DOMAIN=erp.odoocker.test
# Enterprise
GITHUB_USER=
GITHUB_ACCESS_TOKEN=
GITHUB_USER=yhaelopez
GITHUB_ACCESS_TOKEN=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
# Database
ADMIN_PASSWD=odoo
@@ -31,8 +31,9 @@ LIST_DB=True
DBFILTER=.*
# Logging
LOG_LEVEL=info
LOG_HANDLER="[':INFO']"
LOG_LEVEL=debug
# Additional logs
LOG_HANDLER_LEVEL=INFO
# Nginx
CORS_ALLOWED_DOMAIN="'http://external-domain.test'"
@@ -62,7 +63,7 @@ PGADMIN_PASSWORD=odoo
PROJECT_NAME=odoocker
SUPPORT_EMAIL=mail@example.com
# Containers Tags
# Containers' Tags
ODOO_TAG=14.0
POSTGRES_TAG=15.4
NGINX_TAG=1.25.2
@@ -126,12 +127,11 @@ SCREENCASTS=None
SCREENSHOTS=/tmp/odoo_tests
# Logging
LOGFILE=
SYSLOG=False
LOG_HANDLER=${LOG_HANDLER}
LOG_DB=False
LOG_DB_LEVEL=info
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_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)
- [Why Odoocker Stands Out](#why-odoocker-stands-out)
- [Quick Setup Guide](#quick-setup-guide)
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.
## Contents
- [Quick Setup Guide](#quick-setup-guide)
- [The `.env` File](#the-env-file)
- [Environment-based actions](#environment-based-actions)
- [1. Fresh or Restore](#1-fresh-or-restore)
@@ -23,15 +29,7 @@
- [PgAdmin](#pgadmin-container)
- [Deployment Process](#deployment-process)
# 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.
**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:
## 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.
@@ -78,10 +76,13 @@ This file is divided in sections, you most likely are going to focus on the `Mai
Sample `.env` file:
```
# Odoo
UPDATE=custom_account_addon
APP_ENV=debug
INIT=
UPDATE=my_custom_addon
LOAD=base,web
WORKERS=2
DEV_MODE=reload,qweb
DOMAIN=erp.odoocker.test
# Enterprise (GitHub User with access to Odoo Enterprise [https://github.com/odoo/enterprise] Repo)
GITHUB_USER=yhaelopez
@@ -94,6 +95,7 @@ DB_PORT=5432
DB_NAME=my-odoo-db
DB_USER=odoo
DB_PASSWORD=odoo
LOAD_LANGUAGE=es_MX
...
```