mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-03 03:07:18 +00:00
14 lines
381 B
Python
14 lines
381 B
Python
"""Post messages to mitmproxy's event log."""
|
|
import logging
|
|
|
|
from mitmproxy.log import ALERT
|
|
|
|
|
|
def load(l):
|
|
logging.info("This is some informative text.")
|
|
logging.warning("This is a warning.")
|
|
logging.error("This is an error.")
|
|
logging.log(
|
|
ALERT,
|
|
"This is an alert. It has the same urgency as info, but will also pop up in the status bar.",
|
|
)
|