Picologging can't seem to log to a file at all. My picologging version is 0.9.1. Here's how to reproduce it:
import picologging as logging
logging.basicConfig(filename='example.log', encoding='utf-8', level=logging.DEBUG)
This raises the exception:
AttributeError Traceback (most recent call last)
Cell In[2], line 1
----> 1 logging.basicConfig(filename='example.log', encoding='utf-8', level=logging.DEBUG)
File ~/Library/Caches/pypoetry/virtualenvs/hades-sKbaLlxM-py3.9/lib/python3.9/site-packages/picologging/__init__.py:272, in basicConfig(**kwargs)
270 errors = None
271 else:
--> 272 encoding = io.text_encoding(encoding)
273 h = FileHandler(filename, mode, encoding=encoding, errors=errors)
274 else:
AttributeError: module 'io' has no attribute 'text_encoding'
Picologging can't seem to log to a file at all. My picologging version is 0.9.1. Here's how to reproduce it:
This raises the exception: