{"id":32779358,"url":"https://github.com/ghtaarn/loggingutils.jl","last_synced_at":"2026-02-27T17:35:17.729Z","repository":{"id":284624332,"uuid":"955086115","full_name":"GHTaarn/LoggingUtils.jl","owner":"GHTaarn","description":"Useful additions to the Logging.jl standard library","archived":false,"fork":false,"pushed_at":"2025-03-26T20:08:35.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-04T16:09:53.412Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","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/GHTaarn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-26T04:50:52.000Z","updated_at":"2025-03-26T20:08:38.000Z","dependencies_parsed_at":"2025-03-26T21:20:57.781Z","dependency_job_id":"9c6b52bc-1de4-40dc-b19b-83d81706a50b","html_url":"https://github.com/GHTaarn/LoggingUtils.jl","commit_stats":null,"previous_names":["ghtaarn/loggingutils.jl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GHTaarn/LoggingUtils.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GHTaarn%2FLoggingUtils.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GHTaarn%2FLoggingUtils.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GHTaarn%2FLoggingUtils.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GHTaarn%2FLoggingUtils.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GHTaarn","download_url":"https://codeload.github.com/GHTaarn/LoggingUtils.jl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GHTaarn%2FLoggingUtils.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29906408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T17:28:36.873Z","status":"ssl_error","status_checked_at":"2026-02-27T17:28:20.970Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-04T16:05:50.129Z","updated_at":"2026-02-27T17:35:17.709Z","avatar_url":"https://github.com/GHTaarn.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LoggingUtils.jl\n\nSome utilies that can be useful in connection with the\n[`Logging`](https://docs.julialang.org/en/v1/stdlib/Logging/) standard\nlibrary. Also exports all exported symbols from the `Logging` standard\nlibrary.\n\n## Installation\n\nFrom the Julia REPL, execute\n\n```julia\nusing Pkg\npkg\"add https://github.com/GHTaarn/LoggingUtils.jl\"\n```\n\nor using [FreeRegistry](https://github.com/GHTaarn/FreeRegistry):\n\n```julia\nusing Pkg\npkg\"registry add https://github.com/GHTaarn/FreeRegistry\"\npkg\"add LoggingUtils\"\n```\n\n## Use\n\nThere are two entry points, `@no_logging` and `@with_logger` which are both\ndescribed more precisely in their docstrings.\n\n### Examples\n\n```julia\nusing LoggingUtils\n\nfunction verbose_sin(x)\n    @info \"calculating sin\"\n    sin(x)\nend\n\n@no_logging println(verbose_sin(8))\n\nmylogger = SimpleLogger()\n\n@with_logger mylogger println(verbose_sin(8))\n```\n\nIllustrating that `@no_logging` suppresses logging, whereas `@with_logger`\nredirects logging to the specified logger.\n\n### Caveats\n\nBoth `@no_logging` and `@with_logger` use the \n[`Logging.with_logger`](https://docs.julialang.org/en/v1/stdlib/Logging/#Logging.with_logger)\nfunction internally and therefore assignments must be done externally, e.g.\n\n```julia\nusing LoggingUtils\n\nfunction verbose_sin(x)\n    @info \"calculating sin\"\n    sin(x)\nend\n\na = @no_logging verbose_sin(1)\n@assert a == sin(1)\n@no_logging a = verbose_sin(2)\n@assert a == sin(2)\n```\n\nwhere the first assertion would pass and the second would fail.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghtaarn%2Floggingutils.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghtaarn%2Floggingutils.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghtaarn%2Floggingutils.jl/lists"}