Advertisement
Jexal

86a2d600-c294-48b2-b268-6232de0bfc92

Apr 7th, 2025
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. # Setting Up Logging:
  2. LOG_FILE = "Waylink.log"
  3. logging.basicConfig(
  4.     filename=LOG_FILE,
  5.     level=logging.DEBUG,
  6.     format="%(asctime)s - %(levelname)s - %(message)s",
  7.     datefmt="%Y-%m-%d %H:%M:%S"  # Excludes milliseconds.
  8. )
  9. logging.info("Script initialized.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement