You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use this function to create a log entry in your lumigo platform.
31
+
You can use it to dynamically generate alerts programmatically with searchable fields.
32
+
Then use the lumigo explore to search and filters logs in free text.
33
+
34
+
:param msg: a free text to log
35
+
:param alert_type: Should be considered as a grouping parameter. This indicates the type of this message. Default: ProgrammaticWarn
36
+
:param extra: a key-value dict. Limited to 10 keys and 50 characters per value.
37
+
"""
38
+
log(logging.WARN, msg, alert_type, extra)
39
+
40
+
41
+
deferror(
42
+
msg: str,
43
+
alert_type: Optional[str] =None,
44
+
extra: Optional[Dict[str, str]] =None,
45
+
err: Optional[Exception] =None,
46
+
):
47
+
"""
48
+
Use this function to create a log entry in your lumigo platform.
49
+
You can use it to dynamically generate alerts programmatically with searchable fields.
50
+
Then use the lumigo explore to search and filters logs in free text.
51
+
52
+
:param msg: a free text to log
53
+
:param alert_type: Should be considered as a grouping parameter. This indicates the type of this message. Default: take the given exception type or ProgrammaticError if its None
54
+
:param extra: a key-value dict. Limited to 10 keys and 50 characters per value. By default we're taking the excpetion raw message
0 commit comments