{"id":16906662,"url":"https://github.com/rsms/asl-logging","last_synced_at":"2025-09-23T13:27:58.789Z","repository":{"id":527855,"uuid":"156634","full_name":"rsms/asl-logging","owner":"rsms","description":"Convenience functions and example code for using ASL (Apple System Log facility)","archived":false,"fork":false,"pushed_at":"2009-03-23T01:50:16.000Z","size":84,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T12:41:45.506Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rsms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-03-22T23:17:14.000Z","updated_at":"2024-04-02T17:40:52.000Z","dependencies_parsed_at":"2022-07-07T14:39:42.973Z","dependency_job_id":null,"html_url":"https://github.com/rsms/asl-logging","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fasl-logging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fasl-logging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fasl-logging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fasl-logging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsms","download_url":"https://codeload.github.com/rsms/asl-logging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248429950,"owners_count":21101924,"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-10-13T18:43:50.904Z","updated_at":"2025-09-23T13:27:53.735Z","avatar_url":"https://github.com/rsms.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logging with ASL -- Apple System Logger\n\n## Convenience functions\n\n`logging.h` and `logging.c` includes convenience functionality suitable for\nmost small-to-medium scale programs. Have a look at `usage.c` for a\nminimalistic example or `example.c` for a more complete program.\n\nYou can build and test the `example.c` program by running make:\n\n    make\n    ./example --help\n\nWhen logging.h is used in Objective-C, there are an extra set of macros defined for logging with NSStrings and related arguments. These macros begin with a capital letter L (i.e. Log_info).\n\n## Objective-C ASLLogger\n\nThe `objc` directory contain a Objective-C OOP library, designed in Apple Foundation fashion. The ASLLogger provide, in contrast to the `logging.h` convenience macros, thread safety. ASLLoggers and ASLConnections are stored in thread-local space. However; passing instances of ASLLogger between threads will cause problems. You should instead aquire new loggers for each thread using `+(ASLLogger *)loggerForModule:(NSString *)m`.\n\nYou can build and test the `objc/example.m` program:\n\n    cd objc\n    make\n    ./example\n\n## About\n\nBy [Rasmus Andersson](http://hunch.se/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsms%2Fasl-logging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsms%2Fasl-logging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsms%2Fasl-logging/lists"}