Skip to content

Commit

Permalink
logging for journalctl
Browse files Browse the repository at this point in the history
  • Loading branch information
Brain-dawg committed Jan 25, 2025
1 parent 6163aff commit 4f63e8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mge/vpi/vpi_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import tempfile
import shutil
import datetime
import sys
import requests
import logging

Expand All @@ -14,7 +15,8 @@
# Setup logging at the top of the file
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
stream=sys.stdout
)
logger = logging.getLogger('VPI_MGE')

Expand Down

0 comments on commit 4f63e8a

Please sign in to comment.