{"id":16088641,"url":"https://github.com/kkrypt0nn/tangra","last_synced_at":"2025-04-05T16:12:48.321Z","repository":{"id":195938466,"uuid":"693761320","full_name":"kkrypt0nn/tangra","owner":"kkrypt0nn","description":"🪵 A lightweight and easy to use Go logging library","archived":false,"fork":false,"pushed_at":"2024-12-11T20:40:35.000Z","size":724,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-11T12:45:34.721Z","etag":null,"topics":["go","go-log","go-logger","go-logging","golang","google","google-go","library","log","logger","logger-go","logging","logging-go","logging-library","logs"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kkrypt0nn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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},"funding":{"github":["kkrypt0nn"],"patreon":null,"open_collective":null,"ko_fi":"kkrypt0nn","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.buymeacoffee.com/kkrypt0nn"]}},"created_at":"2023-09-19T16:54:35.000Z","updated_at":"2024-12-11T20:40:40.000Z","dependencies_parsed_at":"2024-12-18T22:41:50.409Z","dependency_job_id":null,"html_url":"https://github.com/kkrypt0nn/tangra","commit_stats":null,"previous_names":["kkrypt0nn/tangra"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkrypt0nn%2Ftangra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkrypt0nn%2Ftangra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkrypt0nn%2Ftangra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkrypt0nn%2Ftangra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkrypt0nn","download_url":"https://codeload.github.com/kkrypt0nn/tangra/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247361700,"owners_count":20926643,"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":["go","go-log","go-logger","go-logging","golang","google","google-go","library","log","logger","logger-go","logging","logging-go","logging-library","logs"],"created_at":"2024-10-09T13:44:01.124Z","updated_at":"2025-04-05T16:12:48.291Z","avatar_url":"https://github.com/kkrypt0nn.png","language":"Go","funding_links":["https://github.com/sponsors/kkrypt0nn","https://ko-fi.com/kkrypt0nn","https://www.buymeacoffee.com/kkrypt0nn"],"categories":[],"sub_categories":[],"readme":"# tangra\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/kkrypt0nn/tangra.svg)](https://pkg.go.dev/github.com/kkrypt0nn/tangra) ![Repository License](https://img.shields.io/github/license/kkrypt0nn/tangra?style=flat-square) ![Code Size](https://img.shields.io/github/languages/code-size/kkrypt0nn/tangra?style=flat-square) ![Last Commit](https://img.shields.io/github/last-commit/kkrypt0nn/tangra?style=flat-square)\n\nA lightweight and easy to use Go logging library that includes logging functionalities with different levels and custom\nformatting. It can also be used as a library to simply format the various messages you print in the terminal.\n\n## Showcase\n\n### macOS\n\n![macOS Showcase](assets/macos.png)\n\n### Linux\n\n![Linux Showcase](assets/linux.png)\n\n### Windows\n\n![Windows Showcase](assets/windows.png)\n\n## Installation\n\nIf you want to use this library for one of your projects, you can install it like any other Go library\n\n```shell\ngo get github.com/kkrypt0nn/tangra\n```\n\n## Customizing\n\n### Prefix\n\nThe prefix, what comes before the message, can be changed with the `SetPrefix` method on a `Logger` structure.\n\n\u003e The default prefix is `${datetime} ${level:color}${level:name}${reset}: `\n\n### Placeholders\n\nThere are formatting placeholders that will be replaced in both the message and the prefix that can be\nseen [here](PLACEHOLDERS.md). All the placeholders in effect can be seen in\nthe [`placeholders example`](examples/placeholders/main.go).\n\n[For example](examples), logging the following message\n\n```\n${fg:red}${effect:blink}${effect:bold}${sys:username} says hello!\n```\n\nWill print a red blinking message in bold that says `\u003cusername\u003e says hello!`, where `\u003cusername\u003e` is the username on your\nsystem.\n\n### Styling\n\nYou can choose whether you want to style your messages or not with the `SetStyling` method on a `Logger` structure.\nStyling includes foreground colors, background colors and special effects such as bold, and others - see\nthe [terminal package](terminal).\n\n\u003e **Note**: The styling will **not** apply to the message if it is not supported by the terminal.\n\n### Log File\n\nLogs can also be written inside a log file with styling removed. See the [example here](examples/file/main.go).\n\n## License\n\nThis library was made with 💜 by Krypton and is under the [MIT](LICENSE.md) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkrypt0nn%2Ftangra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkrypt0nn%2Ftangra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkrypt0nn%2Ftangra/lists"}