Projekt

Obecné

Profil

Stáhnout (564 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
import logging
2

    
3

    
4
class Logger:
5

    
6
    @staticmethod
7
    def debug(layer: str, message: str):
8
        logging.debug(f'{layer}: {message}')
9

    
10
    @staticmethod
11
    def info(layer: str, message: str):
12
        logging.info(f'{layer}: {message}')
13

    
14
    @staticmethod
15
    def warning(layer: str, message: str):
16
        logging.warning(f'{layer}: {message}')
17

    
18
    @staticmethod
19
    def error(layer: str, message: str):
20
        logging.error(f'{layer}: {message}')
21

    
22
    @staticmethod
23
    def critical(layer: str, message: str):
24
        logging.critical(f'{layer}: {message}')
(3-3/5)