mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-13 07:55:05 +02:00
Add a simple temporary folder
This commit is contained in:
parent
d5dd5aac06
commit
8c431c7d81
3 changed files with 65 additions and 5 deletions
|
|
@ -1,18 +1,20 @@
|
|||
import logging
|
||||
|
||||
from .ilias import *
|
||||
from .utils import *
|
||||
# from .ilias import *
|
||||
# from .utils import *
|
||||
from .temp_folder import *
|
||||
|
||||
STYLE = "{"
|
||||
FORMAT = "[{levelname:<7}] {message}"
|
||||
DATE_FORMAT = "%F %T"
|
||||
|
||||
FORMATTER = logging.Formatter(
|
||||
fmt=FORMAT,
|
||||
datefmt=DATE_FORMAT,
|
||||
style=STYLE,
|
||||
fmt=FORMAT,
|
||||
datefmt=DATE_FORMAT,
|
||||
style=STYLE,
|
||||
)
|
||||
|
||||
|
||||
def enable_logging(name: str = "PFERD", level: int = logging.INFO) -> None:
|
||||
handler = logging.StreamHandler()
|
||||
handler.setFormatter(FORMATTER)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue