{"id":37225552,"url":"https://github.com/kafrax/logx","last_synced_at":"2026-01-15T01:47:50.171Z","repository":{"id":57505006,"uuid":"99785832","full_name":"kafrax/logx","owner":"kafrax","description":"log,high performance,easy to use,automatic in write and switch log files","archived":false,"fork":false,"pushed_at":"2017-11-15T03:06:15.000Z","size":43,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T10:05:33.712Z","etag":null,"topics":["easy","go","golang","log","logger","logx","performance"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kafrax.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}},"created_at":"2017-08-09T08:47:43.000Z","updated_at":"2024-06-20T10:05:33.713Z","dependencies_parsed_at":"2022-09-19T05:30:10.188Z","dependency_job_id":null,"html_url":"https://github.com/kafrax/logx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kafrax/logx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kafrax%2Flogx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kafrax%2Flogx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kafrax%2Flogx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kafrax%2Flogx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kafrax","download_url":"https://codeload.github.com/kafrax/logx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kafrax%2Flogx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28441031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"ssl_error","status_checked_at":"2026-01-15T00:55:20.945Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["easy","go","golang","log","logger","logx","performance"],"created_at":"2026-01-15T01:47:49.662Z","updated_at":"2026-01-15T01:47:50.143Z","avatar_url":"https://github.com/kafrax.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logx\n - log tool,easy to use,high performance,handy,availability\n - version v1.1\n# tps\n```\n //OutPut to file\n //tps is : 1400000/s on windows\n //cpu i5-7600 3.5GHZ\n //8GB\n //it will be better on better platform\n```\n# simple to use\n## install\n\n```\ngo get -u github.com/kafrax/logx\n```\n## start\n```\npackage main\n\nimport (\n    \"github.com/kafrax/logx\"\n)\n\nfunc main(){\n    logx.Debugf(\"LOGX |message=%v |substring=%s\", \"logx is a lightweight log to use\", \"debugf test\")\n    logx.Infof(\"LOGX |message=%s\", \"logx is a lightweight log to use\")\n    logx.Errorf(\"LOGX |message=%s\", \"logx is a lightweight log to use\")\n    logx.Warnf(\"LOGX |message=%s\", \"logx is a lightweight log to use\")\n    logx.Fatalf(\"LOGX |message=%s\", \"logx is a lightweight log to use\")\n}\n```\n```\n[DEBU][08-18.13.34.47.703][main.go|main.main|51] LOGX |message=logx is a lightweight log to use |substring=debugf test\n[INFO][08-18.13.34.47.703][main.go|main.main|52] LOGX |message=logx is a lightweight log to use\n[ERRO][08-18.13.34.47.703][main.go|main.main|53] LOGX |message=logx is a lightweight log to use\n[WARN][08-18.13.34.47.703][main.go|main.main|54] LOGX |message=logx is a lightweight log to use\n[FTAL][08-18.13.34.47.703][main.go|main.main|55] LOGX |message=logx is a lightweight log to use\n```\n\n#  write to file\n## config logx.json or config.json\n- let logx.json  or config.json in your project root dir.\n- will be executed by default , there is no config.json or logx.json yet.\n- *notice* fileWriter use memory cache ,so must have enough time to do poller to save data to log file.\n```\n{\n    \"llevel\":1,        //log level,1debug,2info,3warn,4error,5fatal\n    \"lmaxsize\":256     //256mb\n    \"lout\":\"stdout\",   //file|stdout\n    \"lbucketlen\":1024, //log message bucket cache size\n    \"lfilename\":\"logx\",//log file name eg. logx2006-01-02.04.05.000.log\n    \"lfilepath\":\"./\",  //log file path\n    \"lpollerinterval\": //500 millisecond flush once\n}\n```\n## start\n```\npackage main\n\nimport (\n    \"github.com/kafrax/logx\"\n)\n\nfunc main(){\n    logx.Debugf(\"module=test |message=%s\",\"logx is a lightweight log to use\")\n    var str string\n    fmt.Scan(\u0026str)\n}\n```\n\n# future\n - data queue send to kafaka\n\n# @me\n - kafrax.go@gmail.com","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkafrax%2Flogx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkafrax%2Flogx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkafrax%2Flogx/lists"}