We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2130aa commit 15f84fdCopy full SHA for 15f84fd
1 file changed
nxc/logger.py
@@ -90,6 +90,7 @@ def __init__(self, extra=None):
90
rich_tracebacks=True,
91
tracebacks_show_locals=False
92
)],
93
+ encoding="utf-8"
94
)
95
self.logger = logging.getLogger("nxc")
96
self.extra = extra
@@ -181,7 +182,7 @@ def add_file_log(self, log_file=None):
181
182
open(output_file, "x") # noqa: SIM115
183
file_creation = True
184
- file_handler = RotatingFileHandler(output_file, maxBytes=100000)
185
+ file_handler = RotatingFileHandler(output_file, maxBytes=100000, encoding="utf-8")
186
187
with file_handler._open() as f:
188
if file_creation:
0 commit comments