{"id":32150720,"url":"https://github.com/nerzh/swift-custom-logger","last_synced_at":"2026-07-14T04:32:07.743Z","repository":{"id":233356507,"uuid":"786998083","full_name":"nerzh/swift-custom-logger","owner":"nerzh","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-18T15:10:51.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-06-12T14:22:37.194Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/nerzh.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-04-15T17:38:49.000Z","updated_at":"2025-04-18T15:08:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"104dd34a-2f57-42b6-bed1-e7dee1663182","html_url":"https://github.com/nerzh/swift-custom-logger","commit_stats":null,"previous_names":["nerzh/swift-custom-logger"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/nerzh/swift-custom-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerzh%2Fswift-custom-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerzh%2Fswift-custom-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerzh%2Fswift-custom-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerzh%2Fswift-custom-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nerzh","download_url":"https://codeload.github.com/nerzh/swift-custom-logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerzh%2Fswift-custom-logger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35446915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-14T02:00:06.603Z","response_time":114,"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":[],"created_at":"2025-10-21T10:18:03.170Z","updated_at":"2026-07-14T04:32:07.728Z","avatar_url":"https://github.com/nerzh.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"```swift\nimport SwiftCustomLogger\nimport Logging\n\nfunc setupLogger(label: String = \"\", level: Logger.Level? = nil) -\u003e Logger {\n    var level: Logger.Level! = level\n    if level == nil {\n        #if DEBUG\n        level = .debug\n        #else\n        level = .warning\n        #endif\n    }\n    \n    var log = Logger(label: label) { label in\n        return CustomHandler(\n            formatter: BasicFormatter([\n                .text({ level in\n                    switch level {\n                    case .trace: return \"💾\"\n                    case .debug: return \"🛠️\"\n                    case .info: return \"📟\"\n                    case .notice: return \"❕\"\n                    case .warning: return \"⚠️\"\n                    case .error: return \"🐞\"\n                    case .critical: return \"❌\"\n                    }\n                }),\n                .text({ level in \"[\\(level)]\".uppercased() }),\n                .text({ _ in label }),\n                .file,\n                .line,\n                .text({ _ in \":\" }),\n                .message\n            ],\n            separator: \" \"),\n            printer: LoggerPrinter.standardOutput\n        )\n    }\n    log.logLevel = level\n    \n    return log\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerzh%2Fswift-custom-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnerzh%2Fswift-custom-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerzh%2Fswift-custom-logger/lists"}