{"id":21571,"library":"minilog","title":"minilog","description":"Minimalistic wrapper for Python's standard logging module. Provides a simpler API with sensible defaults. Current version 2.3.1, released under MIT license. Maintained regularly.","status":"active","version":"2.3.1","language":"python","source_language":"en","source_url":"https://github.com/jacebrowning/minilog","tags":["logging","minimal","wrapper"],"install":[{"cmd":"pip install minilog","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Logger is re-exported at package level in v2+.","wrong":"from minilog.logger import Logger","symbol":"Logger","correct":"from minilog import Logger"}],"quickstart":{"code":"from minilog import Logger\n\nlog = Logger()  # or Logger(__name__) for module-specific\nlog.debug('This is debug')","lang":"python","description":"Create a default logger and log messages."},"warnings":[{"fix":"Use Logger(__name__) if you want module-specific logger, or Logger() for root.","message":"In v2.0, the API changed: Logger() now requires no arguments by default; positional argument for name is optional.","severity":"breaking","affected_versions":">=2.0"},{"fix":"Call log.setLevel('DEBUG') after creation.","message":"The `log_level` argument in Logger constructor (used in v1.x) is ignored in v2. Use `setLevel()` instead.","severity":"deprecated","affected_versions":">=2.0"},{"fix":"Configure handler: log.handler.stream = sys.stderr","message":"Logger by default uses stdout, not stderr. Many expect logging to go to stderr.","severity":"gotcha","affected_versions":"all"},{"fix":"Wrap with threading.Lock when logging from multiple threads.","message":"The library is not thread-safe by default. Use logging locks if needed.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Upgrade to v2: pip install --upgrade minilog. Or use from minilog.logger import Logger for v1.","cause":"Installed old version (v1.x) where Logger was not exported at package level.","error":"AttributeError: module 'minilog' has no attribute 'Logger'"},{"fix":"Use: from minilog import Logger","cause":"Typo or using outdated import path.","error":"ImportError: cannot import name 'Logger' from 'minilog'"},{"fix":"Use Logger(__name__) is still valid but in some v2 versions only keyword works. Check docs.","cause":"Trying to pass name as positional argument in v2.3+ where signature changed.","error":"TypeError: Logger() takes 0 positional arguments but 1 was given"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}