{"id":16625927,"url":"https://github.com/strum355/log","last_synced_at":"2025-10-30T01:31:04.792Z","repository":{"id":57493901,"uuid":"200248626","full_name":"Strum355/log","owner":"Strum355","description":"Stroom log ","archived":false,"fork":false,"pushed_at":"2020-07-08T11:30:59.000Z","size":20,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-21T18:48:32.229Z","etag":null,"topics":["json-logging","logging","structured-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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Strum355.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}},"created_at":"2019-08-02T14:27:05.000Z","updated_at":"2021-02-05T06:44:38.000Z","dependencies_parsed_at":"2022-09-04T15:34:10.381Z","dependency_job_id":null,"html_url":"https://github.com/Strum355/log","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Strum355%2Flog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Strum355%2Flog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Strum355%2Flog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Strum355%2Flog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Strum355","download_url":"https://codeload.github.com/Strum355/log/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219856996,"owners_count":16556074,"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":["json-logging","logging","structured-logging"],"created_at":"2024-10-12T04:07:50.555Z","updated_at":"2025-10-30T01:30:59.045Z","avatar_url":"https://github.com/Strum355.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stroom Log™\n\n[![Build Status](https://cloud.drone.io/api/badges/Strum355/log/status.svg)](https://cloud.drone.io/Strum355/log)\n[![GoDoc](https://godoc.org/github.com/Strum355/log?status.svg)](https://godoc.org/github.com/Strum355/log)\n[![Go report](https://goreportcard.com/badge/Strum355/log)](https://goreportcard.com/report/Strum355/log)\n\nSimple logger inspired by [bwmarrin/lit](https://github.com/bwmarrin/lit) with fields, opentracing and json output support.\n\n## Design Philosophy\n\nThe design of the API is inspired by Grafana's Loki log aggregation system and structured logging practices. As a result, it heavily favours using fields to log variable data and having log messages be the same regardless of the contextual data.\n\nExample:\n\n```go\nlog.WithFields(log.Fields{\n    \"userId\": user.id,\n    \"requestId\": requestId,\n}).Info(\"user logged in successfully\")\n```\n\ninstead of\n\n```go\nlog.Info(\"request %s user %d logged in successfully\", user.id, requestId)\n```\n\n## Usage\n\nFetch the package:\n\n```shell\ngo get github.com/Strum355/log\n```\n\nand import it:\n\n```go\nimport (\n    \"github.com/Strum355/log\"\n)\n```\n\ninitialize the logger for development:\n\n```go\nlog.InitSimpleLogger(\u0026log.Config{...})\n```\n\nor for production using a JSON log parser like FluentD\n\n```go\nlog.InitJSONlogger(\u0026log.Config{...})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrum355%2Flog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrum355%2Flog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrum355%2Flog/lists"}