{"id":23468383,"url":"https://github.com/dikkadev/dnutlogger","last_synced_at":"2025-06-17T18:36:41.434Z","repository":{"id":246708585,"uuid":"821912597","full_name":"dikkadev/dnutlogger","owner":"dikkadev","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-19T09:32:00.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T18:04:33.159Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dikkadev.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-06-29T19:53:24.000Z","updated_at":"2024-10-19T09:32:03.000Z","dependencies_parsed_at":"2024-06-29T21:38:32.978Z","dependency_job_id":"153066ee-561a-4976-8eee-136eb47b09f1","html_url":"https://github.com/dikkadev/dnutlogger","commit_stats":null,"previous_names":["sett17/dnutlogger","dikkadev/dnutlogger"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dikkadev/dnutlogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dikkadev%2Fdnutlogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dikkadev%2Fdnutlogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dikkadev%2Fdnutlogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dikkadev%2Fdnutlogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dikkadev","download_url":"https://codeload.github.com/dikkadev/dnutlogger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dikkadev%2Fdnutlogger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260419619,"owners_count":23006317,"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":[],"created_at":"2024-12-24T13:52:53.896Z","updated_at":"2025-06-17T18:36:36.095Z","avatar_url":"https://github.com/dikkadev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dnutlogger\n\n### **D**o **N**ot **U**se **T**his **Logger** (Seriously, Why Are You Even Here?)\n\n---\n\nOh, you found dnutlogger. Guess you're out of good options. This is what I use for logging because I can't be bothered with anything better. If you're here, you must share my questionable standards. Let's get on with it.\n\n## What is dnutlogger?\n\nGlad you asked. It's a logger. That's it. It logs stuff. To the console. Wow. Revolutionary, I know. But hey, it works for me, so it might just work for you. Or not. Probably not. But who cares?\n\n## How to Install\n\nYou really want to do this, huh? Fine. Here you go:\n\n```sh\ngo get github.com/sett17/dnutlogger\n```\n\n## Usage\n\nAlright, so you’ve gone ahead and installed it. Bold move. Here’s how you can use this masterpiece of logging technology:\n\n```go\npackage main\n\nimport (\n    \"errors\"\n    log \"github.com/sett17/dnutlogger\"\n)\n\nfunc main() {\n    // Optional configurations\n    log.SetMinLevel(log.DEBUG) // Set the minimum log level to DEBUG\n    log.UseColor(false)        // Disable colored output (default is true)\n    log.SetStackTracePrinting(false) // Disable stack trace printing (default is true)\n\n    // Logging a debug message\n    log.Debug(\"This is a debug message\")\n\n    // Logging a debug formatted message\n    log.Debugf(\"This is a debug message with a number: %d\", 42)\n\n    // Logging an info message\n    log.Info(\"This is an info message\")\n\n    // Logging an info formatted message\n    log.Infof(\"This is an info message with a string: %s\", \"example\")\n\n    // Logging a warning message\n    log.Warn(\"This is a warning message\")\n\n    // Logging a warning formatted message\n    log.Warnf(\"This is a warning message with a float: %.2f\", 3.14)\n\n    // Logging a success message\n    log.Success(\"This is a success message\")\n\n    // Logging a success formatted message\n    log.Successf(\"This is a success message with a boolean: %t\", true)\n\n    // Logging an error message without exiting\n    log.Error(false, \"This is an error message without exiting\")\n\n    // Logging an error formatted message without exiting\n    log.Errorf(false, \"This is an error message with a struct: %+v\", struct{ Name string }{\"example\"})\n\n    // Logging an error with a stack trace and exiting\n    log.Err(true, errors.New(\"This is a fatal error\"))\n}\n```\n\n## Log Levels\n\nWow, you actually care about the log levels? Fine, here they are:\n\n- **DEBUG**: For when you need to log every single step because you have no idea what's going on.\n- **INFO**: Standard log level, because you’re supposed to care about these messages.\n- **SUCCESS**: Everything went better than expected.\n- **WARN**: Things are getting sketchy, might want to pay attention.\n- **ERROR**: You messed up. Big time.\n\n_This is also the order used with `SetMinLevel()`, so setting the minimum log level to `SUCCESS` will log everything from `SUCCESS` to `ERROR`._\n\n## Configuration\n\n### Set Minimum Log Level\n\nBecause obviously, you need to filter out the noise:\n\n```go\nlog.SetMinLevel(log.WARN)\n```\n\n### Enable/Disable Color\n\nMake your console pretty, or not:\n\n```go\nlog.UseColor(true) // or false if you're boring\n```\n\n### Enable/Disable Stack Trace Printing\n\nControl whether stack traces are printed for errors:\n\n```go\nlog.SetStackTracePrinting(true) // or false if you don't want to see where you messed up\n```\n\n## License\n\nDo whatever you want. I do not care. Seriously.\n\n---\n\nWell, there you have it. You’ve just spent time reading a README for a logger that I don’t even recommend you use. But you do you. Enjoy (or not).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdikkadev%2Fdnutlogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdikkadev%2Fdnutlogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdikkadev%2Fdnutlogger/lists"}