{"id":17740616,"url":"https://github.com/rusq/dlog","last_synced_at":"2026-05-03T04:33:12.673Z","repository":{"id":53782944,"uuid":"266950698","full_name":"rusq/dlog","owner":"rusq","description":"Standard Logger Debug Extension for Go Language.","archived":false,"fork":false,"pushed_at":"2023-03-21T06:29:16.000Z","size":43,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T10:18:10.554Z","etag":null,"topics":["debug","golang","golang-lib","golang-library","logger","logging","minimalist"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rusq.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2020-05-26T05:16:14.000Z","updated_at":"2023-04-01T00:56:06.000Z","dependencies_parsed_at":"2024-10-26T15:12:44.740Z","dependency_job_id":null,"html_url":"https://github.com/rusq/dlog","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusq%2Fdlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusq%2Fdlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusq%2Fdlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusq%2Fdlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rusq","download_url":"https://codeload.github.com/rusq/dlog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246543487,"owners_count":20794361,"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":["debug","golang","golang-lib","golang-library","logger","logging","minimalist"],"created_at":"2024-10-26T03:06:46.743Z","updated_at":"2026-05-03T04:33:07.652Z","avatar_url":"https://github.com/rusq.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"====================\n Standard Logger Ex\n====================\n\n.. image:: https://pkg.go.dev/badge/github.com/rusq/dlog.svg\n   :target: https://pkg.go.dev/github.com/rusq/dlog\n\nWhat is this?\n=============\n\nThis is a simple wrapper around the standard go runtime logger with only one\ngoal:\n\n* ADD DEBUG OUTPUT FUNCTIONS.\n\nFunctions that are available for the caller:\n\n* All those in \"log\" AND\n* Debug\n* Debugf\n* Debugln\n\nOn the package base level these functions will print output only if the\n``DEBUG`` environment variable is present and have some non-empty value.\n\nOtherwise, one can construct a new logger::\n\n  func New(out io.Writer, prefix string, flag int, debug bool) *Logger\n\nfor the flags, one could use the values from the standard logger.\n\n\nUsage\n=====\n\nImport it in your project replacing \"log\" import entry:\n\n.. code:: go\n\n  import (\n    log \"github.com/rusq/dlog\"\n  )\n\nUse:\n\n.. code:: go\n\n   log.Debug(\"hello debug!\")\n\nCheck if debug is enabled:\n\n.. code:: go\n\n   log.IsDebug()\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frusq%2Fdlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frusq%2Fdlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frusq%2Fdlog/lists"}