{"id":37139888,"url":"https://github.com/unaxiom/ulogger","last_synced_at":"2026-01-14T16:20:08.937Z","repository":{"id":90540054,"uuid":"89350759","full_name":"Unaxiom/ulogger","owner":"Unaxiom","description":"Logging library in Golang with ability to POST logs to a remote URL. Supports colored output on stdout.","archived":false,"fork":false,"pushed_at":"2020-07-05T11:42:14.000Z","size":41,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T03:47:43.086Z","etag":null,"topics":["golang","logging"],"latest_commit_sha":null,"homepage":null,"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/Unaxiom.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":"2017-04-25T11:01:49.000Z","updated_at":"2020-07-05T11:41:08.000Z","dependencies_parsed_at":"2023-06-18T10:31:00.108Z","dependency_job_id":null,"html_url":"https://github.com/Unaxiom/ulogger","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Unaxiom/ulogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Unaxiom%2Fulogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Unaxiom%2Fulogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Unaxiom%2Fulogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Unaxiom%2Fulogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Unaxiom","download_url":"https://codeload.github.com/Unaxiom/ulogger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Unaxiom%2Fulogger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28425650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T15:24:48.085Z","status":"ssl_error","status_checked_at":"2026-01-14T15:23:41.940Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["golang","logging"],"created_at":"2026-01-14T16:20:06.776Z","updated_at":"2026-01-14T16:20:08.925Z","avatar_url":"https://github.com/Unaxiom.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ulogger\n\nA custom logger that can be configured with different output colors. It can also stream logs to a remote URL. Take a look at the [documentation](https://godoc.org/github.com/Unaxiom/ulogger). It can also deep log an element using [spew](https://github.com/davecgh/go-spew).\n\n# Usage\n```\nimport \"github.com/Unaxiom/ulogger\"\n\nfunc main() {\n    log := ulogger.New()\n    log.SetLogLevel(ulogger.DebugLevel) // Possible values are ulogger.DebugLevel (debug - least), ulogger.InfoLevel (info), ulogger.WarningLevel (warning), ulogger.ErrorLevel (error), ulogger.FatalLevel (fatal - highest), in ascending order, with ulogger.InfoLevel being the default\n    log.RemoteAvailable = true // Defines whether logs need to the be streamed to the remote URL\n    log.ApplicationName = \"Temp Debugger\" // Sets the applicaton name\n    log.OrganizationName = \"New org\" // Sets the organization name that this build is licensed to\n    log.LineNumber = false // Bool value sets if line number, function name, and the file name need to be printed to the console. Default is true\n    ulogger.RemoteURL = \"https://example.com\" // Sets the remote URL where the log message needs to be sent via a POST request. If this is not set, and if log.RemoteAvailability is true, then the default URL is \"\"\n}\n```\n\n# Possible log levels\n```\n# Debug level logs\nlog.Debug(args ...interface{})\nlog.Debugf(format string, args ...interface{})\nlog.Debugln(args ...interface{})\n\n# Info level logs\nlog.Info(args ...interface{})\nlog.Infof(format string, args ...interface{})\nlog.Infoln(args ...interface{})\n\n# Warning level logs\nlog.Warning(args ...interface{})\nlog.Warningf(format string, args ...interface{})\nlog.Warningln(args ...interface{})\n\n# Error level logs\nlog.Error(args ...interface{})\nlog.Errorf(format string, args ...interface{})\nlog.Errorln(args ...interface{})\n\n# Fatal level logs\nlog.Fatal(args ...interface{})\nlog.Fatalf(format string, args ...interface{})\nlog.Fatalln(args ...interface{})\n```\n\n# Deep logging\n```\nlog.DebugDump(args ...interface{})\nlog.InfoDump(args ...interface{})\nlog.WarningDump(args ...interface{})\nlog.ErrorDump(args ...interface{})\nlog.FatalDump(args ...interface{})\n```\n\n# Modification of output colors\n```\nlog.InfoColor\nlog.InfoTimeColor\nlog.InfoMessageTypeColor\nlog.DebugColor\nlog.DebugTimeColor\nlog.DebugMessageTypeColor\nlog.WarningColor\nlog.WarningTimeColor\nlog.WarningMessageTypeColor\nlog.ErrorColor\nlog.ErrorTimeColor\nlog.ErrorMessageTypeColor\nlog.FatalColor\nlog.FatalTimeColor\nlog.FatalMessageTypeColor\n```\nEach of these values could be assigned an color from the package [`github.com/fatih/color`](https://github.com/fatih/color).\n\n# Disabling remote logging\nRemote logging can be disabled by setting `log.RemoteAvailable` to `false`.\n\n# Print function name, line number, and the file name\nThis can be done by setting `log.LineNumber = true`. The default instance when creating a new logger has it set to `true`. If these values aren't required, they can be hidden by setting this value to `false`.\n\n# Send log messages to custom URL\nIf `log.RemoteAvailable` is set to `true`, then log messages are sent via a `POST` request to the URL. In case the URL needs to be changed, then it can be done so by updating `ulogger.RemoteURL` to the appropriate URL string. These messages would be sent via goroutines, so the execution will not be blocked.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funaxiom%2Fulogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funaxiom%2Fulogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funaxiom%2Fulogger/lists"}