{"id":22895663,"url":"https://github.com/jonaslang1/swiftlogging","last_synced_at":"2025-10-12T12:05:47.753Z","repository":{"id":242872185,"uuid":"810529398","full_name":"jonaslang1/SwiftLogging","owner":"jonaslang1","description":"SwiftLogging is a simple logging utility written in Swift.","archived":false,"fork":false,"pushed_at":"2024-10-12T12:12:17.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-12T12:05:46.726Z","etag":null,"topics":["logging","swift","swift-package-manager","swift5"],"latest_commit_sha":null,"homepage":"","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/jonaslang1.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-06-04T21:53:17.000Z","updated_at":"2024-10-12T12:12:20.000Z","dependencies_parsed_at":"2024-06-05T13:39:36.194Z","dependency_job_id":"d11877e0-fd2a-43b4-9988-494f7ca65bd4","html_url":"https://github.com/jonaslang1/SwiftLogging","commit_stats":null,"previous_names":["jonaslang1/swiftlogging"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/jonaslang1/SwiftLogging","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaslang1%2FSwiftLogging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaslang1%2FSwiftLogging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaslang1%2FSwiftLogging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaslang1%2FSwiftLogging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonaslang1","download_url":"https://codeload.github.com/jonaslang1/SwiftLogging/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaslang1%2FSwiftLogging/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011279,"owners_count":26084928,"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-10-12T02:00:06.719Z","response_time":53,"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":["logging","swift","swift-package-manager","swift5"],"created_at":"2024-12-13T23:30:40.680Z","updated_at":"2025-10-12T12:05:47.736Z","avatar_url":"https://github.com/jonaslang1.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftLogging\n\nSwiftLogging is a simple logging utility written in Swift. It provides a `Logger` class for handling different levels of log messages and a `LogFileManager` class for managing log files.\n\n## Features\n\n- Log messages at different levels: info, warning, error.\n- Include file, function, and line number in log messages.\n- Create and manage log files.\n\n## Installation\n\nSimply add the `Logger.swift` and `LogFileManager.swift` files to your project.\n\n## Usage\n\n### Logging Messages\n\n```swift\nlet logger = Logger()\n\nlogger.info(\"This is an informational message\")\nlogger.warning(\"This is a warning message\")\nlogger.error(\"This is an error message\")\n```\n\n### Managing Log Files\n```swift\n// Create a log file\nLogFileManager.createLogFile()\n\n// Get a list of log files\nif let logFiles = LogFileManager.getLogFiles() {\n\tfor fileURL in logFiles {\n\t\tprint(\"Log file: \\(fileURL.lastPathComponent)\")\n\t}\n}\n\n// Read the contents of a log file\nif let firstLogFile = LogFileManager.getLogFiles()?.first,\n   let logContent = LogFileManager.readLogFile(atPath: firstLogFile) {\n\tprint(\"Log content:\")\n\tprint(logContent)\n}\n```\n## Contributing\n\nContributions are welcome! If you encounter any issues or have suggestions for improvement, feel free to open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaslang1%2Fswiftlogging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonaslang1%2Fswiftlogging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaslang1%2Fswiftlogging/lists"}