aboutsummaryrefslogtreecommitdiff
path: root/mlog.py
diff options
context:
space:
mode:
Diffstat (limited to 'mlog.py')
-rw-r--r--mlog.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mlog.py b/mlog.py
index 666fa10..5cac222 100644
--- a/mlog.py
+++ b/mlog.py
@@ -62,6 +62,11 @@ def process_markup(args, keep):
arr.append(str(arg))
return arr
+def debug(*args, **kwargs):
+ arr = process_markup(args, False)
+ if log_file is not None:
+ print(*arr, file=log_file, **kwargs) # Log file never gets ANSI codes.
+
def log(*args, **kwargs):
arr = process_markup(args, False)
if log_file is not None: