{"id":13879452,"url":"https://github.com/umbrellio/threaded_logging","last_synced_at":"2025-05-06T19:24:20.179Z","repository":{"id":59157811,"uuid":"59510901","full_name":"umbrellio/threaded_logging","owner":"umbrellio","description":"Better formatter for Ruby loggers.","archived":false,"fork":false,"pushed_at":"2019-11-15T17:54:39.000Z","size":15,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-18T18:58:03.822Z","etag":null,"topics":["logger","logging","ruby","ruby-logger","threaded-logging"],"latest_commit_sha":null,"homepage":"","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/umbrellio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-23T19:06:26.000Z","updated_at":"2023-08-08T15:32:07.000Z","dependencies_parsed_at":"2022-09-13T17:52:19.132Z","dependency_job_id":null,"html_url":"https://github.com/umbrellio/threaded_logging","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Fthreaded_logging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Fthreaded_logging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Fthreaded_logging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umbrellio%2Fthreaded_logging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umbrellio","download_url":"https://codeload.github.com/umbrellio/threaded_logging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223793129,"owners_count":17203755,"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":["logger","logging","ruby","ruby-logger","threaded-logging"],"created_at":"2024-08-06T08:02:21.545Z","updated_at":"2024-11-09T06:24:38.326Z","avatar_url":"https://github.com/umbrellio.png","language":"Ruby","readme":"# threaded_logging \u0026middot; [![Gem Version](https://badge.fury.io/rb/threaded_logging.svg)](https://badge.fury.io/rb/threaded_logging) [![Build Status](https://travis-ci.org/umbrellio/threaded_logging.svg?branch=master)](https://travis-ci.org/umbrellio/threaded_logging) [![Coverage Status](https://coveralls.io/repos/github/umbrellio/threaded_logging/badge.svg?branch=master)](https://coveralls.io/github/umbrellio/threaded_logging?branch=master)\n\nThis gem patches default Ruby log formatter so that every line includes a digest of current process PID + current thread id so that you can easily grep the logs of every particular thread. It also adds the metadata part to each line of the message in case it is multiline.\n\n## Installation\n\n```ruby\ngem 'threaded_logging'\n```\n\n```shell\n$ bundle install\n# --- or ---\n$ gem install 'threaded_logging'\n```\n\n```ruby\nrequire 'threaded_logging'\n```\n\n## Usage\n\nBefore:\n\n```ruby\n\u003e Logger.new(STDOUT).info(\"Line 1\\nLine 2\")\nI, [2016-05-23T22:33:40.649346 #13604]  INFO -- : Line 1\nLine 2\n```\n\nAfter:\n\n```ruby\n\u003e Logger.new(STDOUT).info(\"Line 1\\nLine 2\")\nI [2016-05-23T22:32:30.483767] #bd134bb0: Line 1\nI [2016-05-23T22:32:30.483767] #bd134bb0: Line 2\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/umbrellio/table_sync.\n\n## License\n\nReleased under MIT License.\n\n## Authors\n\nCreated by Yuri Smirnov.\n\n\u003ca href=\"https://github.com/umbrellio/\"\u003e\n\u003cimg style=\"float: left;\" src=\"https://umbrellio.github.io/Umbrellio/supported_by_umbrellio.svg\" alt=\"Supported by Umbrellio\" width=\"439\" height=\"72\"\u003e\n\u003c/a\u003e\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumbrellio%2Fthreaded_logging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumbrellio%2Fthreaded_logging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumbrellio%2Fthreaded_logging/lists"}