{"id":20417860,"url":"https://github.com/tk3369/modulelogging.jl","last_synced_at":"2026-06-01T03:31:55.470Z","repository":{"id":55691731,"uuid":"223649007","full_name":"tk3369/ModuleLogging.jl","owner":"tk3369","description":"Global logging for your own modules only!","archived":false,"fork":false,"pushed_at":"2020-12-14T00:46:59.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T11:10:56.748Z","etag":null,"topics":["julia","logging"],"latest_commit_sha":null,"homepage":"","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/tk3369.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}},"created_at":"2019-11-23T20:31:03.000Z","updated_at":"2021-02-18T03:19:36.000Z","dependencies_parsed_at":"2022-08-15T06:21:08.130Z","dependency_job_id":null,"html_url":"https://github.com/tk3369/ModuleLogging.jl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tk3369%2FModuleLogging.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tk3369%2FModuleLogging.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tk3369%2FModuleLogging.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tk3369%2FModuleLogging.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tk3369","download_url":"https://codeload.github.com/tk3369/ModuleLogging.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241960837,"owners_count":20049342,"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":["julia","logging"],"created_at":"2024-11-15T06:28:02.119Z","updated_at":"2026-06-01T03:31:55.426Z","avatar_url":"https://github.com/tk3369.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ModuleLogging.jl\n\n[![Build Status](https://github.com/tk3369/ModuleLogging.jl/workflows/CI/badge.svg)](https://github.com/tk3369/ModuleLogging.jl/actions?query=workflow%3ACI)\n\nThis package allows selective logging by module.\n\nOne use case is to turn on debug logging only for your own modules \nbut not any other third-party modules.  \n\nFor convenience, two constructor functions are provided. \nThe first one creates an underlying `SimpleLogger`. \n```julia\nModuleLogger(stream::IO, level::Logging.LogLevel, modules::Module...)\nModuleLogger(logger::AbstractLogger, modules::Module...)\n```\n\nExample:\n```julia\nmodule Foo\n    function foo()\n        @debug \"foo called\"\n        return 1\n    end\nend\n\nmodule Bar\n    function bar()\n        @debug \"bar called\"\n        return 2\n    end\nend\n\nusing Logging, ModuleLogging\nusing .Foo\nusing .Bar\n\n# Turn on debug logging for Foo module only\nlogger = ModuleLogger(stderr, Logging.Debug, Foo)\nglobal_logger(logger)\n\nFoo.foo()    # debug log is displayed\nBar.bar()    # no debug log\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftk3369%2Fmodulelogging.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftk3369%2Fmodulelogging.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftk3369%2Fmodulelogging.jl/lists"}