{"id":23964507,"url":"https://github.com/rdhillbb/logging","last_synced_at":"2026-06-08T23:02:22.101Z","repository":{"id":270443236,"uuid":"906843687","full_name":"rdhillbb/logging","owner":"rdhillbb","description":"Thread Safe logging  system","archived":false,"fork":false,"pushed_at":"2025-01-23T04:01:01.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T13:28:38.769Z","etag":null,"topics":["go-routines","golang","logging"],"latest_commit_sha":null,"homepage":"","language":"Go","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/rdhillbb.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-22T04:27:11.000Z","updated_at":"2025-01-23T04:01:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"8036dfb1-cf8a-4ff6-acde-a7e20eda7794","html_url":"https://github.com/rdhillbb/logging","commit_stats":null,"previous_names":["rdhillbb/logging"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rdhillbb/logging","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdhillbb%2Flogging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdhillbb%2Flogging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdhillbb%2Flogging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdhillbb%2Flogging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdhillbb","download_url":"https://codeload.github.com/rdhillbb/logging/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdhillbb%2Flogging/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34083848,"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-06-08T02:00:07.615Z","response_time":111,"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":["go-routines","golang","logging"],"created_at":"2025-01-06T21:35:56.602Z","updated_at":"2026-06-08T23:02:22.082Z","avatar_url":"https://github.com/rdhillbb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logging System\n\nA thread-safe, asynchronous logging system that writes messages to timestamped files.\n\n## Installation\n\n```go\nimport \"path/to/logging\"\n```\n\n## Quick Start\n\n```go\n// Initialize with default settings (buffer size: 1000)\nInitLogServer()\n\n// Enable logging - creates ./logs directory and log file\nif err := EnableLogging(); err != nil {\n    log.Fatal(err)\n}\n\n// Write logs asynchronously\nWriteLogs(\"Starting application...\")\n\n// Check logging status\nif IsLoggingEnabled() {\n    WriteLogs(\"System is running\")\n}\n\n// Disable logging - ensures all messages are written before closing\nDisableLogging()\n```\n\n## Custom Configuration\n\n```go\n// Initialize with custom buffer size\nInitLogServer(WithBufferSize(2000))\n```\n\n## Features\n\n- Thread-safe operations\n- Non-blocking writes with configurable buffer\n- Automatic log file creation with timestamps\n- Clean session markers\n- Log files format: `./logs/anthropic-debug-YYYYMMDD-HHMMSS.log`\n\n## Best Practices\n\n1. Initialize early in your application\n2. Always handle `EnableLogging()` errors\n3. Call `DisableLogging()` before application shutdown\n4. Monitor stderr for dropped message warnings\n\n## File Format Example\n\n```\n=== Session Started: 2024-12-09 15:04:05 ===\n[2024-12-09 15:04:05.123] Log message 1\n[2024-12-09 15:04:06.234] Log message 2\n=== Session Ended: 2024-12-09 15:04:07 ===\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdhillbb%2Flogging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdhillbb%2Flogging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdhillbb%2Flogging/lists"}