{"id":26983,"library":"fbscribelogger","title":"FBscribeLogger","description":"FBscribeLogger is a Python logging library that provides structured logging with support for Facebook's scribe logging system. It allows you to log messages in a key-value format and send them to scribe or other log aggregators. The current version is 0.1.7, with a release cadence that appears to be sporadic.","status":"active","version":"0.1.7","language":"python","source_language":"en","source_url":"https://github.com/facebookarchive/fbscribelogger","tags":["logging","scribe","facebook","structured-logging"],"install":[{"cmd":"pip install fbscribelogger","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Used for HTTP requests to scribe endpoint","package":"requests","optional":false},{"reason":"Python 2/3 compatibility","package":"six","optional":false}],"imports":[{"note":"Common typo: hyphen instead of underscore in package name.","wrong":"from fbscribe_logger import FBscribeLogger","symbol":"FBscribeLogger","correct":"from fbscribelogger import FBscribeLogger"},{"note":"","wrong":"","symbol":"ScribeHandler","correct":"from fbscribelogger import ScribeHandler"}],"quickstart":{"code":"import logging\nfrom fbscribelogger import FBscribeLogger\n\nlogger = FBscribeLogger(host='scribe.example.com', port=1463)\nlogger.info('Test message', extra={'key': 'value'})","lang":"python","description":"Basic usage: create an FBscribeLogger instance with host and port, then log with extra data."},"warnings":[{"fix":"Consider using a more modern structured logging library like structlog or python-json-logger.","message":"The library is not actively maintained. It has not been updated since 2020 and may have compatibility issues with newer Python or requests library versions.","severity":"gotcha","affected_versions":"all"},{"fix":"Ensure your environment is Python 3.8.1+ and test logging of non-ASCII characters.","message":"Requires Python >=3.8.1, but the library itself is written for Python 2/3 and may have unicode issues in Python 3.","severity":"breaking","affected_versions":">=0.1.7"},{"fix":"Use a standard logging handler or send logs via HTTP to a modern aggregator.","message":"The Scribe protocol is deprecated at Facebook. The library may still work but is no longer recommended for new projects.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Install correctly: pip install fbscribelogger","cause":"Package not installed or misspelled (e.g., 'fbscribe_logger').","error":"ModuleNotFoundError: No module named 'fbscribelogger'"},{"fix":"Check documentation; may need to pass a ScribeHandler or configure via a dict.","cause":"Using wrong class or outdated API. FBscribeLogger may not accept direct host/port.","error":"TypeError: __init__() got an unexpected keyword argument 'host'"},{"fix":"Use: from fbscribelogger import FBscribeLogger","cause":"Incorrect import path or version mismatch.","error":"AttributeError: module 'fbscribelogger' has no attribute 'FBscribeLogger'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}