• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bradleyfalzon / gopherci
61%
master: 61%

Build:
Build:
LAST BUILD BRANCH: review-no-approve
DEFAULT BRANCH: master
Repo Added 22 Oct 2016 12:03PM UTC
Files 0
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH logger
branch: logger
CHANGE BRANCH
x
Reset
  • logger
  • analyser-composition
  • build-summary
  • builddb
  • clone-path
  • commit-comment
  • debug
  • disable-private
  • docker
  • docs-errors
  • dominikh
  • dual-comments
  • error-handling
  • failed-diff
  • first-commit
  • fix-goveralls
  • fix-hardcoded
  • gcppubsub
  • godep
  • gopherci-env
  • gopherci.yml
  • graceful
  • ignore-gen
  • integration-test
  • master
  • maxcommments
  • memlimit
  • msgs
  • pr-reviews
  • pr-reviews-default
  • preflight
  • pubsub-breaking
  • pubsub-timeout
  • push
  • refactor-analyser
  • reference-failures
  • refreader
  • remove-accountid
  • reporter
  • requeue
  • review-no-approve
  • senderid
  • show-env
  • syncronize
  • test
  • various
  • wbsecret
  • webui

pending completion
359

push

travis-ci

bradleyfalzon
Provide application wide logger for structured, levelled with context

./internal/logger provides a single logger than all packages can use
to provide:

Levelled logs: Debug is for developers, Info for general production
messages to assist in troubleshooting, Error to be used when an error
occurs that's handled but needs to be raised to an operator and Fatal
which logs the message and terminates execution.

Structured: Using With() to add fields to a message allows operators to
easily view related messages, as GopherCI provides many concurrent
services, it's useful to only inspect message related to a certain
event.

Context: Using With() to return another Logger which logs all messages
with the provided name/key and value. Allows developers to pass along
loggers with information about the event so new clients can be unaware
of the event but still have additional context added to their logs.

Logger is its own interface that wraps a single type of logger. Currently
it is logrus, chosen because it matches requires, I'm familiar with it,
and supports hooks.

Sentry is also used for the hooks, where any event of level Error or
above will send the event to a Sentry instance, where operators can
collate, deduplicate be alerted and track resolutions.

Finally, due to case sensitive import conflicts of github.com/sirupsen/logrus
one of the copies is moved to the GOPATH to avoid conflicts with the other.
This is very unfortunate hack until everyone moves to lowercase the
import path.

1136 of 1872 relevant lines covered (60.68%)

3.46 hits per line

Relevant lines Covered
Build:
Build:
1872 RELEVANT LINES 1136 COVERED LINES
3.46 HITS PER LINE
Source Files on logger
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
359 logger Provide application wide logger for structured, levelled with context ./internal/logger provides a single logger than all packages can use to provide: Levelled logs: Debug is for developers, Info for general production messages to assist in trou... push 15 Aug 2017 12:07PM UTC bradleyfalzon travis-ci pending completion  
356 logger tests push 15 Aug 2017 04:04AM UTC bradleyfalzon travis-ci pending completion  
355 logger Add db to logger push 14 Aug 2017 07:35AM UTC bradleyfalzon travis-ci pending completion  
354 logger Add db to logger push 14 Aug 2017 07:31AM UTC bradleyfalzon travis-ci pending completion  
352 logger Add queue to logger push 14 Aug 2017 03:01AM UTC bradleyfalzon travis-ci pending completion  
See All Builds (294)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc