File: test_logging.py

package info (click to toggle)
python-proton-vpn-local-agent 1.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 480 kB
  • sloc: python: 429; makefile: 36; sh: 12
file content (13 lines) | stat: -rwxr-xr-x 291 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python3
'''
Test setting up the local agent logger.
'''
import logging
import local_agent

logging.basicConfig()

logger = local_agent.init_logger(logging.getLogger)
logger.setLevel(logging.DEBUG)

logger.info("hello", extra={"rust_info" : {"name" : "dave", "lineno" : 123}})