{"id":34125950,"url":"https://github.com/spider-pigs/spiderlog","last_synced_at":"2025-12-14T23:27:04.498Z","repository":{"id":55899429,"uuid":"191750863","full_name":"spider-pigs/spiderlog","owner":"spider-pigs","description":"A simple logging client for spiders.","archived":false,"fork":false,"pushed_at":"2020-12-08T15:32:55.000Z","size":14,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-19T06:50:00.294Z","etag":null,"topics":["golang","logging","stackdriver-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/spider-pigs.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-06-13T11:33:50.000Z","updated_at":"2024-06-19T06:50:00.294Z","dependencies_parsed_at":"2022-08-15T09:00:38.983Z","dependency_job_id":null,"html_url":"https://github.com/spider-pigs/spiderlog","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/spider-pigs/spiderlog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spider-pigs%2Fspiderlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spider-pigs%2Fspiderlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spider-pigs%2Fspiderlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spider-pigs%2Fspiderlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spider-pigs","download_url":"https://codeload.github.com/spider-pigs/spiderlog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spider-pigs%2Fspiderlog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27739104,"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","status":"online","status_checked_at":"2025-12-14T02:00:11.348Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","stackdriver-logs"],"created_at":"2025-12-14T23:27:03.834Z","updated_at":"2025-12-14T23:27:04.485Z","avatar_url":"https://github.com/spider-pigs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spiderlog\n[![Build Status](https://travis-ci.org/spider-pigs/spiderlog.svg?branch=master)](https://travis-ci.org/spider-pigs/spiderlog) [![Go Report Card](https://goreportcard.com/badge/github.com/spider-pigs/spiderlog)](https://goreportcard.com/report/github.com/spider-pigs/spiderlog) [![GoDoc](https://godoc.org/github.com/spider-pigs/spiderlog?status.svg)](https://godoc.org/github.com/spider-pigs/spiderlog)\n\nspiderlog is a simple logging client.\n\n## Install\n\n```Golang\nimport \"github.com/spider-pigs/spiderlog\"\n```\n\n## Usage\n\nThere are four logging levels supported: `Debug`, `Info`, `Warning`, `Error`\n\nHere is an example of how to setup logging for a Google logging client.\n\n```Golang\npackage main\n\nimport (\n\t\"context\"\n\n\t\"cloud.google.com/go/logging\"\n\t\"github.com/spider-pigs/spiderlog\"\n)\n\n// Initialize log to guard from nil pointer dereferences\nvar log = spiderlog.New()\n\nfunc main() {\n\tproject := \"projects/some_project_id\"\n\tclient, err := logging.NewClient(context.Background(), project)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tlog = spiderlog.New(\n\t\tspiderlog.DebugLogger(client.Logger(\"a_log_id\").StandardLogger(logging.Debug)),\n\t\tspiderlog.InfoLogger(client.Logger(\"a_log_id\").StandardLogger(logging.Info)),\n\t\tspiderlog.WarningLogger(client.Logger(\"a_log_id\").StandardLogger(logging.Warning)),\n\t\tspiderlog.ErrorLogger(client.Logger(\"a_log_id\").StandardLogger(logging.Error)),\n\t\tspiderlog.StdoutEnabled(false), // Defaults to true\n\t)\n\n\t// Write an info log\n\tlog.Info(\"Hello World!\")\n\n\t// Or log with formatting\n\tlog.Infof(\"Hello %s!\\n\", \"World\")\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspider-pigs%2Fspiderlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspider-pigs%2Fspiderlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspider-pigs%2Fspiderlog/lists"}