17 lines (17 with data), 1.7 kB
╝÷ýYî Ń @ sh d Z d d l Z d d l Z d Z d Z d g Z d Z d Z d Z d Z d Z
Gd d
ä d
â Z d S)z. It configures the Python application logger.
Ú NzMohsen Mesgarpourz-Copyright 2016, https://github.com/mesgarpour┌GPLz1.0zmohsen.mesgarpour@gmail.com┌Releasec @ s. e Z d Z d e e e d d d É ä Z d S)┌Logger┌log)┌path┌app_name┌extc C sň t j | â } | j t j â t j j t j j | | d | â â } t j | d d â} | j t j â t j â } | j t j
â t j d â } | j | â | j | â | j
| â | j
| â | j d | d â d S)a Initialise the objects and constants.
:param path: the output directory path, where the log file will be saved.
:param app_name: the application name, which will be used as the log file name.
:param ext: the log file extension name.
┌.┌mode┌wz4%(asctime)s - %(name)s - %(levelname)s - %(message)sz
Creating 'z' File.N)┌logging┌ getLogger┌setLevel┌DEBUG┌osr ┌abspath┌join┌FileHandler┌
StreamHandler┌INFO┌ Formatter┌setFormatter┌
addHandler┌info) ┌selfr r r ┌loggerZ path_full┌fh┌ch┌ formatterę r ˙FC:\Users\eagle\Documents\GitHub\Analytics_UoW\TCARER\Configs\Logger.py┌__init__# s
)
zLogger.__init__N)┌__name__┌
__module__┌__qualname__┌strr! r r r r r "