From 0272d2b5d3c01f2f3c675b6c012095b5dbe68f89 Mon Sep 17 00:00:00 2001 From: Jakub Zenon Kujawa Date: Wed, 18 Dec 2024 18:59:13 +0100 Subject: [PATCH] feat(encryption): add logging configuration for AES encryption module --- src/encryption/aes.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/encryption/aes.py b/src/encryption/aes.py index 9265a90..3495da0 100644 --- a/src/encryption/aes.py +++ b/src/encryption/aes.py @@ -1,5 +1,6 @@ from __future__ import annotations +import logging from typing import TYPE_CHECKING import aiofiles @@ -11,6 +12,18 @@ from os import PathLike +logging.basicConfig( + level=logging.INFO, + format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", + datefmt="%Y-%m-%d %H:%M:%S", + handlers=[ + logging.StreamHandler(), + ], +) + +logger = logging.getLogger(__name__) + + class AESCipher: """AES Cipher implementation for file encryption and decryption.