{"id":13805088,"url":"https://github.com/deavmi/gogga","last_synced_at":"2025-05-13T18:33:10.028Z","repository":{"id":71425457,"uuid":"308275255","full_name":"deavmi/gogga","owner":"deavmi","description":"Plug-and-play colorful VT100 logging for your terminal","archived":false,"fork":false,"pushed_at":"2025-03-21T12:27:04.000Z","size":285,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T13:25:14.363Z","etag":null,"topics":["colour","dlang","dlog","logging","vt100"],"latest_commit_sha":null,"homepage":"https://code.dlang.org/packages/gogga","language":"D","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deavmi.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-29T09:16:20.000Z","updated_at":"2025-03-21T12:26:47.000Z","dependencies_parsed_at":"2024-05-02T09:53:08.845Z","dependency_job_id":"0bb1c373-3a45-4d9a-a938-4b690d0f1d03","html_url":"https://github.com/deavmi/gogga","commit_stats":null,"previous_names":[],"tags_count":45,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deavmi%2Fgogga","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deavmi%2Fgogga/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deavmi%2Fgogga/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deavmi%2Fgogga/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deavmi","download_url":"https://codeload.github.com/deavmi/gogga/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254003486,"owners_count":21997896,"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":["colour","dlang","dlog","logging","vt100"],"created_at":"2024-08-04T01:00:57.361Z","updated_at":"2025-05-13T18:33:10.020Z","avatar_url":"https://github.com/deavmi.png","language":"D","funding_links":[],"categories":["Command Line"],"sub_categories":["XML"],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"branding/logo_banner.png\" width=450\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n\u003ch3 align=\"center\"\u003e\u003ci\u003e\u003cb\u003eSimple VT100 colourised pretty-printing logger\u003c/i\u003e\u003c/b\u003e\u003c/h3\u003e\n\n---\n\n\u003cbr\u003e\n\u003cbr\n\n[![D](https://github.com/deavmi/gogga/actions/workflows/d.yml/badge.svg)](https://github.com/deavmi/gogga/actions/workflows/d.yml)\n    \n## Usage\n\nThe API is rather straight-forward, simply create a new logger and then you can use it as such:\n\n```d\nimport gogga;\n\nGoggaLogger gLogger = new GoggaLogger();\n\ngLogger.info(\"This is an info message\");\ngLogger.warn(\"This is a warning message\");\ngLogger.error(\"This is an error message\");\n```\n\nThis should output something like the following:\n\n![](example.png)\n\nVarious [styles](https://gogga.dpldocs.info/gogga.core.GoggaMode.html) are supported which can be set using `mode(GoggaMode)`.\n\n---\n\nOr you can also [View the full API](https://gogga.dpldocs.info/).\n\n### Quick-and-dirty logging functions\n\nFor quick-and-dirty ease of use there is also a module called `gogga.mixins`. Once\nthis module is imported it will mixin a set of variadic-argument functions for you\nof the form:\n\n1. `DEBUG(...)`\n2. `INFO(...)`\n3. `WARN(...)`\n4. `ERROR(...)`\n\nThese will become immediately available to you and a logger that is configured to\nwrite out to standard output will be configured with the styling of `GoggaMode.SIMPLE`\nand a logging level of `Level.INFO`.\n\nAs for build options there are the following available for configuration:\n\n| Build option name     | Description |\n|-----------------------|-------------|\n| `DBG_VERBOSE_LOGGING` | When enabled the `GoggaMode.RUSTACEAN` will be used |\n| `DBG_DEBUG_LOGGING`   | When enabled the logging level will be set to `Level.DEBUG` |\n\nThe `GoggaLogger` logger instance created is shared amongst the same thread _or_\nin other words it is stored as part of thread-local storage (TLS). For more information\nbrowse the source code of `source/gogga/mixins.d`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeavmi%2Fgogga","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeavmi%2Fgogga","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeavmi%2Fgogga/lists"}