Skip to content

Commit

Permalink
add timestamp for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dewenni committed Oct 30, 2024
1 parent 279f767 commit 9bf4fd2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/lanis_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
import sys

def setup_logger():

logging.basicConfig(
level=logging.INFO,
format="%(asctime)s - %(levelname)s - %(name)s - %(message)s",
datefmt="%Y-%m-%d %H:%M:%S"
)

logger = logging.getLogger('LanisAPP')
logger.setLevel(logging.INFO)

Expand Down

0 comments on commit 9bf4fd2

Please sign in to comment.