{"id":28379382,"url":"https://github.com/bitquery/bitquery_logger","last_synced_at":"2025-09-11T21:42:50.125Z","repository":{"id":119820706,"uuid":"404435631","full_name":"bitquery/bitquery_logger","owner":"bitquery","description":"Logger","archived":false,"fork":false,"pushed_at":"2023-10-04T10:01:32.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-30T02:44:36.182Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitquery.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-09-08T17:22:57.000Z","updated_at":"2021-12-09T11:29:40.000Z","dependencies_parsed_at":"2023-06-09T08:45:20.324Z","dependency_job_id":null,"html_url":"https://github.com/bitquery/bitquery_logger","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/bitquery/bitquery_logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitquery%2Fbitquery_logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitquery%2Fbitquery_logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitquery%2Fbitquery_logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitquery%2Fbitquery_logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitquery","download_url":"https://codeload.github.com/bitquery/bitquery_logger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitquery%2Fbitquery_logger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261462218,"owners_count":23161902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-30T02:38:15.660Z","updated_at":"2025-09-11T21:42:50.112Z","avatar_url":"https://github.com/bitquery.png","language":"Ruby","readme":"# BitqueryLogger\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\n# Logger\ngem 'bitquery_logger', git: 'https://github.com/bitquery/bitquery_logger.git', branch: 'main'#, path: '../bitquery_logger'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nExecute\n\n    $ rails g bitquery_logger:install\n\nto add initializer\n\nAnd add to `environments/[env].rb`\n\n```ruby\nBITQUERY_LOGGER_CONFIG = {\n  output: :file,\n  log_level: 0\n}\n```\n\nPossible settings\n\n```ruby\nBITQUERY_LOGGER_CONFIG = {\n  # Uncomment to 'disable' logger\n  # output: :stdout,\n  # format_stdout: false,\n  \n  output: :tcp,\n  host: \"127.0.0.1\",\n  port: 5170,\n  buffer_max_items: 300,\n  log_level: 2,\n  # output: :stdout # :stdout_json, :file\n  # stdout_log_level: 0,\n  # 0 - debug, 1 - info, 2 - warn, 3 - error\n  # format_stdout: true\n}\n```\n\n## Usage\n\nAutomatic exception dispatch already works\n\nTo send message with some level use\n\n```ruby\nBitqueryLogger.debug msg\nBitqueryLogger.info msg\nBitqueryLogger.warn msg\nBitqueryLogger.error msg\n```\n\n`msg` can be String or Hash\n\nTo add to context use:\n\n```ruby\nBitqueryLogger.extra_context hash\n```\n\nTo flush buffer use: \n\n```ruby\nBitqueryLogger.flush\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/bitquery_logger. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/bitquery_logger/blob/main/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the BitqueryLogger project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/bitquery_logger/blob/main/CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitquery%2Fbitquery_logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitquery%2Fbitquery_logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitquery%2Fbitquery_logger/lists"}