{"id":3579215,"name":"github.com/feixiao/log4go","ecosystem":"go","description":"Package log4go provides level-based and highly configurable logging.\n\nThis is inspired by the logging functionality in Java.  Essentially, you create a Logger\nobject and create output filters for it.  You can send whatever you want to the Logger,\nand it will filter that based on your settings and send it to the outputs.  This way, you\ncan put as much debug code in your program as you want, and when you're done you can filter\nout the mundane messages so only the important ones show up.\n\nUtility functions are provided to make life easier. Here is some example code to get started:\n\nlog := log4go.NewLogger()\nlog.AddFilter(\"stdout\", log4go.DEBUG, log4go.NewConsoleLogWriter())\nlog.AddFilter(\"log\",    log4go.FINE,  log4go.NewFileLogWriter(\"example.log\", true))\nlog.Info(\"The time is now: %s\", time.LocalTime().Format(\"15:04:05 MST 2006/01/02\"))\n\nThe first two lines can be combined with the utility NewDefaultLogger:\n\nlog := log4go.NewDefaultLogger(log4go.DEBUG)\nlog.AddFilter(\"log\",    log4go.FINE,  log4go.NewFileLogWriter(\"example.log\", true))\nlog.Info(\"The time is now: %s\", time.LocalTime().Format(\"15:04:05 MST 2006/01/02\"))\n\nUsage notes:\n\nChanges from 2.0:\n\nFuture work: (please let me know if you think I should work on any of these particularly)","homepage":"https://github.com/feixiao/log4go","licenses":"BSD-2-Clause","normalized_licenses":["BSD-2-Clause"],"repository_url":"https://github.com/feixiao/log4go","keywords_array":[],"namespace":"github.com/feixiao","versions_count":1,"first_release_published_at":"2017-08-24T06:00:20.000Z","latest_release_published_at":"2017-08-24T06:00:20.000Z","latest_release_number":"v0.0.0-20170824060020-147f31608547","last_synced_at":"2026-03-15T09:07:05.917Z","created_at":"2022-04-11T03:56:33.687Z","updated_at":"2026-03-15T09:07:05.917Z","registry_url":"https://pkg.go.dev/github.com/feixiao/log4go","install_command":"go get github.com/feixiao/log4go","documentation_url":"https://pkg.go.dev/github.com/feixiao/log4go#section-documentation","metadata":{},"repo_metadata":{"id":144203595,"uuid":"48269621","full_name":"feixiao/log4go","owner":"feixiao","description":"Logging package similar to log4j for the Go programming language.","archived":false,"fork":false,"pushed_at":"2017-08-24T06:00:21.000Z","size":72,"stargazers_count":2,"open_issues_count":18,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T10:08:52.984Z","etag":null,"topics":["log4go"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/feixiao.png","metadata":{},"created_at":"2015-12-19T05:23:58.000Z","updated_at":"2019-12-24T01:08:39.000Z","dependencies_parsed_at":"2023-06-19T03:53:24.779Z","dependency_job_id":null,"html_url":"https://github.com/feixiao/log4go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/feixiao/log4go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feixiao%2Flog4go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feixiao%2Flog4go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feixiao%2Flog4go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feixiao%2Flog4go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feixiao","download_url":"https://codeload.github.com/feixiao/log4go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feixiao%2Flog4go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28055274,"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-12-26T02:00:06.189Z","response_time":55,"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"}},"repo_metadata_updated_at":"2025-12-29T22:04:58.719Z","dependent_packages_count":2,"downloads":null,"downloads_period":null,"dependent_repos_count":2,"rankings":{"downloads":null,"dependent_repos_count":3.522297884378347,"dependent_packages_count":4.172543393481379,"stargazers_count":null,"forks_count":null,"docker_downloads_count":null,"average":3.8474206389298633},"purl":"pkg:golang/github.com/feixiao/log4go","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/feixiao/log4go","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/feixiao/log4go","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/feixiao/log4go/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-12-26T13:13:22.780Z","issues_count":18,"pull_requests_count":0,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":0,"pull_requests_closed_count":0,"pull_request_authors_count":0,"issue_authors_count":1,"avg_comments_per_issue":1.1666666666666667,"avg_comments_per_pull_request":null,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/feixiao%2Flog4go/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Ffeixiao%2Flog4go/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Ffeixiao%2Flog4go/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Ffeixiao%2Flog4go/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Ffeixiao%2Flog4go/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Ffeixiao%2Flog4go/codemeta","maintainers":[]}