{"id":21126005,"url":"https://github.com/julialogging/sysloglogging.jl","last_synced_at":"2026-01-30T01:11:52.047Z","repository":{"id":61799701,"uuid":"248213077","full_name":"JuliaLogging/SyslogLogging.jl","owner":"JuliaLogging","description":"Syslog Logger for Julia","archived":false,"fork":false,"pushed_at":"2020-04-05T05:35:49.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T07:17:28.962Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JuliaLogging.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-18T11:28:00.000Z","updated_at":"2021-06-26T02:46:29.000Z","dependencies_parsed_at":"2022-10-21T11:30:44.636Z","dependency_job_id":null,"html_url":"https://github.com/JuliaLogging/SyslogLogging.jl","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaLogging%2FSyslogLogging.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaLogging%2FSyslogLogging.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaLogging%2FSyslogLogging.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaLogging%2FSyslogLogging.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JuliaLogging","download_url":"https://codeload.github.com/JuliaLogging/SyslogLogging.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243573168,"owners_count":20312879,"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":"2024-11-20T04:38:45.074Z","updated_at":"2026-01-30T01:11:52.010Z","avatar_url":"https://github.com/JuliaLogging.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SyslogLogging\n\n[![Build Status](https://travis-ci.org/tanmaykm/SyslogLogging.jl.png)](https://travis-ci.org/tanmaykm/SyslogLogging.jl)\n[![Coverage Status](https://coveralls.io/repos/github/tanmaykm/SyslogLogging.jl/badge.svg?branch=master)](https://coveralls.io/github/tanmaykm/SyslogLogging.jl?branch=master)\n\nProvides an implementation of `AbstractLogger` that can log into syslog. The syslog interface is based on [Syslogs.jl](https://github.com/invenia/Syslogs.jl).\n\n### Usage:\n\n```julia\njulia\u003e using SyslogLogging, Logging\n\njulia\u003e logger = SyslogLogger(\"myapplication\", Logging.Info);\n\njulia\u003e with_logger(logger) do\n           @info(\"hello syslog\")\n           @warn(\"hello\", p1=100, d=Dict(\"a\"=\u003e1, \"b\"=\u003e2))\n       end\n\nshell\u003e tail -2 /var/log/syslog\nMar 18 18:30:33 tanlto myapplication: Info: hello syslog [Main REPL[4]:2]\nMar 18 18:30:33 tanlto myapplication: Warning: hello [Main REPL[4]:3], [p1=100], [d=Dict(\"a\"=\u003e1,\"b\"=\u003e2)]\n```\n\n#### Using Remote Syslog Servers\n\nTo use a remote syslog server, provide the connection parameters in addition to the logging identity.\n\n```\njulia\u003e logger = SyslogLogger(\"myapplication\", Logging.Info; host=ip\"127.0.0.1\", port=514, tcp=false)\n```\n\n#### Using Multiple Instances\n\nApplications should ideally have only one instance of `SyslogLogger`, and use keywords instead to differentiate between log identities. But if an application must use multiple instances of `SyslogLogger` with different identities to operate parallely, it may provide a lock to be used by the loggers. Otherwise, because the underlying syslog library provides only one context, there is a chance that the identities may get mixed up. Providing a `ReentrantLock` with the `lck` keyword would prevent that. E.g.:\n\n```julia\njulia\u003e using SyslogLogging, Logging\n\njulia\u003e lck = ReentrantLock();\n\njulia\u003e logger1 = SyslogLogger(\"sysloglogger1\"; lck=lck);\n\njulia\u003e logger2 = SyslogLogger(\"sysloglogger2\"; lck=lck);\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulialogging%2Fsysloglogging.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulialogging%2Fsysloglogging.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulialogging%2Fsysloglogging.jl/lists"}