34 lines
867 B
Python
Executable File
34 lines
867 B
Python
Executable File
# -*- coding: utf-8 -*-
|
|
# (C) 2020 Smile (<http://www.smile.fr>)
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
{
|
|
"name": "Logging in database",
|
|
"version": "3.0",
|
|
"author": "Smile",
|
|
"website": 'http://www.smile.fr',
|
|
"category": "Tools",
|
|
"license": 'AGPL-3',
|
|
"description": """
|
|
Logs handler writing to database
|
|
|
|
Notice
|
|
|
|
* Following code will create a log in db with a unique pid per logger:
|
|
import logging
|
|
logger = SmileLogger(dbname, model_name, res_id, uid)
|
|
logger.info(your_message)
|
|
|
|
Suggestions & Feedback to: xavier.fernandez@smile.fr,
|
|
corentin.pouhet-brunerie@smile.fr
|
|
""",
|
|
"depends": ['base'],
|
|
"data": [
|
|
"security/smile_log_security.xml",
|
|
"security/ir.model.access.csv",
|
|
"views/smile_log_view.xml",
|
|
],
|
|
"installable": True,
|
|
"active": False,
|
|
}
|