{"id":13413323,"url":"https://github.com/cihub/seelog","last_synced_at":"2025-12-15T01:41:26.125Z","repository":{"id":1869211,"uuid":"2794417","full_name":"cihub/seelog","owner":"cihub","description":"Seelog is a native Go logging library that provides flexible asynchronous dispatching, filtering, and formatting.","archived":false,"fork":false,"pushed_at":"2019-03-04T07:03:16.000Z","size":827,"stargazers_count":1639,"open_issues_count":40,"forks_count":242,"subscribers_count":92,"default_branch":"master","last_synced_at":"2024-07-31T20:52:14.565Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"pantlesswonder/robojardeuce","license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cihub.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-17T09:43:15.000Z","updated_at":"2024-07-31T09:49:08.000Z","dependencies_parsed_at":"2022-09-17T05:02:18.397Z","dependency_job_id":null,"html_url":"https://github.com/cihub/seelog","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cihub%2Fseelog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cihub%2Fseelog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cihub%2Fseelog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cihub%2Fseelog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cihub","download_url":"https://codeload.github.com/cihub/seelog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221498731,"owners_count":16833055,"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-07-30T20:01:37.709Z","updated_at":"2025-12-15T01:41:26.058Z","avatar_url":"https://github.com/cihub.png","language":"Go","funding_links":[],"categories":["Go","开源类库","Logging","Logging 日志库","Open source library","日志记录","日志","\u003cspan id=\"日志-logging\"\u003e日志 Logging\u003c/span\u003e","日誌","Relational Databases"],"sub_categories":["日志","Search and Analytic Databases","SQL 查询语句构建库","Advanced Console UIs","Logs","检索及分析资料库","Middlewares","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","交流","高级控制台界面","高級控制台界面"],"readme":"Seelog\n=======\n\nSeelog is a powerful and easy-to-learn logging framework that provides functionality for flexible dispatching, filtering, and formatting log messages.\nIt is natively written in the [Go](http://golang.org/) programming language. \n\n[![Build Status](https://drone.io/github.com/cihub/seelog/status.png)](https://drone.io/github.com/cihub/seelog/latest)\n\nFeatures\n------------------\n\n* Xml configuring to be able to change logger parameters without recompilation\n* Changing configurations on the fly without app restart\n* Possibility to set different log configurations for different project files and functions\n* Adjustable message formatting\n* Simultaneous log output to multiple streams\n* Choosing logger priority strategy to minimize performance hit\n* Different output writers\n  * Console writer\n  * File writer \n  * Buffered writer (Chunk writer)\n  * Rolling log writer (Logging with rotation)\n  * SMTP writer\n  * Others... (See [Wiki](https://github.com/cihub/seelog/wiki))\n* Log message wrappers (JSON, XML, etc.)\n* Global variables and functions for easy usage in standalone apps\n* Functions for flexible usage in libraries\n\nQuick-start\n-----------\n\n```go\npackage main\n\nimport log \"github.com/cihub/seelog\"\n\nfunc main() {\n    defer log.Flush()\n    log.Info(\"Hello from Seelog!\")\n}\n```\n\nInstallation\n------------\n\nIf you don't have the Go development environment installed, visit the \n[Getting Started](http://golang.org/doc/install.html) document and follow the instructions. Once you're ready, execute the following command:\n\n```\ngo get -u github.com/cihub/seelog\n```\n\n*IMPORTANT*: If you are not using the latest release version of Go, check out this [wiki page](https://github.com/cihub/seelog/wiki/Notes-on-'go-get')\n\nDocumentation\n---------------\n\nSeelog has github wiki pages, which contain detailed how-tos references: https://github.com/cihub/seelog/wiki\n\nExamples\n---------------\n\nSeelog examples can be found here: [seelog-examples](https://github.com/cihub/seelog-examples)\n\nIssues\n---------------\n\nFeel free to push issues that could make Seelog better: https://github.com/cihub/seelog/issues\n\nChangelog\n---------------\n* **v2.6** : Config using code and custom formatters\n    * Configuration using code in addition to xml (All internal receiver/dispatcher/logger types are now exported).\n    * Custom formatters. Check [wiki](https://github.com/cihub/seelog/wiki/Custom-formatters)\n    * Bugfixes and internal improvements.\n* **v2.5** : Interaction with other systems. Part 2: custom receivers\n    * Finished custom receivers feature. Check [wiki](https://github.com/cihub/seelog/wiki/custom-receivers)\n    * Added 'LoggerFromCustomReceiver'\n    * Added 'LoggerFromWriterWithMinLevelAndFormat'\n    * Added 'LoggerFromCustomReceiver'\n    * Added 'LoggerFromParamConfigAs...' \n* **v2.4** : Interaction with other systems. Part 1: wrapping seelog\n    * Added configurable caller stack skip logic\n    * Added 'SetAdditionalStackDepth' to 'LoggerInterface'\n* **v2.3** : Rethinking 'rolling' receiver\n    * Reimplemented 'rolling' receiver\n    * Added 'Max rolls' feature for 'rolling' receiver with type='date'\n    * Fixed 'rolling' receiver issue: renaming on Windows\n* **v2.2** : go1.0 compatibility point [go1.0 tag]\n    * Fixed internal bugs\n    * Added 'ANSI n [;k]' format identifier:  %EscN\n    * Made current release go1 compatible \n* **v2.1** : Some new features\n    * Rolling receiver archiving option.\n    * Added format identifier: %Line\n    * Smtp: added paths to PEM files directories\n    * Added format identifier: %FuncShort\n    * Warn, Error and Critical methods now return an error\n* **v2.0** : Second major release. BREAKING CHANGES.\n    * Support of binaries with stripped symbols\n    * Added log strategy: adaptive\n    * Critical message now forces Flush()\n    * Added predefined formats: xml-debug, xml-debug-short, xml, xml-short, json-debug, json-debug-short, json, json-short, debug, debug-short, fast\n    * Added receiver: conn (network connection writer)\n    * BREAKING CHANGE: added Tracef, Debugf, Infof, etc. to satisfy the print/printf principle\n    * Bug fixes\n* **v1.0** : Initial release. Features:\n    * Xml config\n    * Changing configurations on the fly without app restart\n    * Contraints and exceptions\n    * Formatting\n    * Log strategies: sync, async loop, async timer\n    * Receivers: buffered, console, file, rolling, smtp\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcihub%2Fseelog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcihub%2Fseelog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcihub%2Fseelog/lists"}