comparison libervia/backend/core/log_config.py @ 4078:15055a00162c

refactoring: rename `sat_configure` to `libervia_configure`
author Goffi <goffi@goffi.org>
date Fri, 02 Jun 2023 18:21:15 +0200
parents 4b842c1fb686
children 0d7bb4df2343
comparison
equal deleted inserted replaced
4077:d6837db456fd 4078:15055a00162c
376 if level not in C.LOG_LEVELS: 376 if level not in C.LOG_LEVELS:
377 level = C.LOG_LVL_INFO 377 level = C.LOG_LVL_INFO
378 options[LEVEL] = level 378 options[LEVEL] = level
379 379
380 380
381 def sat_configure(backend=C.LOG_BACKEND_STANDARD, const=None, backend_data=None): 381 def libervia_configure(backend=C.LOG_BACKEND_STANDARD, const=None, backend_data=None):
382 """Configure logging system for SàT, can be used by frontends 382 """Configure logging system for SàT, can be used by frontends
383 383
384 logs conf is read in SàT conf, then in environment variables. It must be done before Memory init 384 logs conf is read in SàT conf, then in environment variables. It must be done before Memory init
385 @param backend: backend to use, it can be: 385 @param backend: backend to use, it can be:
386 - C.LOG_BACKEND_BASIC: print based backend 386 - C.LOG_BACKEND_BASIC: print based backend