mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-11-07 17:36:15 +00:00
syncing changes from ballistica/master
This commit is contained in:
parent
2a07c0c840
commit
8913080562
227 changed files with 15756 additions and 12772 deletions
27
dist/ba_data/python/bacommon/logging.py
vendored
Normal file
27
dist/ba_data/python/bacommon/logging.py
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# Released under the MIT License. See LICENSE for details.
|
||||
#
|
||||
"""Logging functionality."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
from typing import TYPE_CHECKING
|
||||
from bacommon.loggercontrol import LoggerControlConfig
|
||||
|
||||
if TYPE_CHECKING:
|
||||
pass
|
||||
|
||||
|
||||
def get_base_logger_control_config_client() -> LoggerControlConfig:
|
||||
"""Return the logger-control-config used by the ballistica client.
|
||||
|
||||
This should remain consistent since local logger configurations
|
||||
are stored relative to this.
|
||||
"""
|
||||
|
||||
# By default, go with WARNING on everything to keep things mostly
|
||||
# clean but show INFO for ba.app to get basic app startup messages
|
||||
# and whatnot.
|
||||
return LoggerControlConfig(
|
||||
levels={'root': logging.WARNING, 'ba.app': logging.INFO}
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue