{"id":30617446,"url":"https://github.com/curtd/loggingcommon.jl","last_synced_at":"2025-08-30T10:10:28.051Z","repository":{"id":170145948,"uuid":"646239696","full_name":"curtd/LoggingCommon.jl","owner":"curtd","description":"Common types + functions for logging frameworks","archived":false,"fork":false,"pushed_at":"2024-04-24T18:28:32.000Z","size":273,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-07T08:34:23.253Z","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/curtd.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}},"created_at":"2023-05-27T18:28:55.000Z","updated_at":"2024-04-24T18:12:45.000Z","dependencies_parsed_at":"2024-04-23T02:02:03.761Z","dependency_job_id":"f33dd665-fcf9-4aae-9f9f-47a75817856e","html_url":"https://github.com/curtd/LoggingCommon.jl","commit_stats":null,"previous_names":["curtd/loggingcommon.jl"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/curtd/LoggingCommon.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curtd%2FLoggingCommon.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curtd%2FLoggingCommon.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curtd%2FLoggingCommon.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curtd%2FLoggingCommon.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/curtd","download_url":"https://codeload.github.com/curtd/LoggingCommon.jl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curtd%2FLoggingCommon.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272834366,"owners_count":25001081,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["julia","logging"],"created_at":"2025-08-30T10:10:26.685Z","updated_at":"2025-08-30T10:10:28.039Z","avatar_url":"https://github.com/curtd.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LoggingCommon\n\n[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://curtd.github.io/LoggingCommon.jl/stable/)\n[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://curtd.github.io/LoggingCommon.jl/dev/)\n[![Build Status](https://github.com/curtd/LoggingCommon.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/curtd/LoggingCommon.jl/actions/workflows/CI.yml?query=branch%3Amain)\n\nProvides some definitions that are useful as the basis for creating a generic logging framework, slightly extending the types and methods introduced in [`Base.Logging`](https://docs.julialang.org/en/v1/stdlib/Logging/). \n\n## Log Message Levels\nThis package adds additional log level aliases to the standard ones from `Base.Logging`. In total, the available log levels are (in order) `NotSet`, `All`, `Trace`, `Debug`, `Info`, `Notice`, `Warn`, `Error`, `Critical`, `Alert`, `Emergency`, `Fatal`, `AboveMax`, and `Off`. \n\nThese aliases can be represented as a `NamedLogLevel`, which maps a `Symbol` to a particular `Base.LogLevel` via the `log_level` function. \n\n```julia-repl\njulia\u003e using LoggingCommon\n\njulia\u003e l = NamedLogLevel(:alert); log_level(l)\nLogLevel(2010)\n```\n\n## Log Records\nThe generic `LogRecord` type represents a generic logging record. It contains both the record itself, as well as static + runtime metatdata associated to it. This type can be used in a generic logging framework, such as [`LoggingExtras`](https://github.com/JuliaLogging/LoggingExtras.jl), to format log message outputs without extraneous logging boilerplate. \n\nMessage records can be created via `message_log_record`, which associates a single `String` message to a log record. Stacktrace records can be created via `stacktrace_log_record`, which associates a `Base.StackTraces.StackTrace` (and an optional `Exception`) to a log record.  \n\nFor each log record, there are two types introduced representing metadata-values associated to a particular log record -- `StaticLogRecordMetadata` and `RuntimeLogRecordMetadata`. These types record log message information available at compile time (e.g., originating module, line number, etc., ) and at runtime (e.g., datetime, thread id, distributed worker id), respectively. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurtd%2Floggingcommon.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurtd%2Floggingcommon.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurtd%2Floggingcommon.jl/lists"}