ok
Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/clwpos/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/clwpos/__pycache__/logsetup.cpython-311.pyc |
� �2�f� � � � d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ d dlm Z m Z mZ d dlm Z dZdZej � d ed � � Zej ej efd�Zdd�Zdd �Zd� Zd� Z G d� dej � � ZdS )� )�absolute_importN)� StreamHandler)�RotatingFileHandler)�PROJECT_NAME� SENTRY_DSN�PKG_VERSION)�init_sentry_clientz/var/log/clwpos/main.logz.clwposz {homedir}zmain.logc �F � t j � � }|dk rEt j |� � }t � |j �� � }ddlm} ||� � t j � t j � � t j | � � }t d� |j D � � � � }t d� |j D � � � � } | s"|� t# |� � � � |s#|� t% ||� � � � |S )z� Sets up logger and return it to the caller :param str caller_name: :param console_level: :param file_level: :return logging.Logger: log, initialized r )�homedir)�create_clwpos_dir_if_not_existsc �<