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

bradleyfalzon / gopherci / 359 / 1
61%
master: 61%

Build:
Build:
LAST BUILD BRANCH: review-no-approve
DEFAULT BRANCH: master
Ran 15 Aug 2017 12:07PM UTC
Files 21
Run time 1s
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

15 Aug 2017 12:01PM UTC coverage: 60.684% (-0.03%) from 60.716%
GOOGLE_APPLICATION_CREDENTIALS=/tmp/gcloud-GopherCI-dev.json

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

Source Files on job 359.1 (GOOGLE_APPLICATION_CREDENTIALS=/tmp/gcloud-GopherCI-dev.json)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 359
  • Travis Job 359.1
  • 3fc3c73f on github
  • Prev Job for GOOGLE_APPLICATION_CREDENTIALS=/tmp/gcloud-GopherCI-dev.json on logger (#356.1)
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

© 2026 Coveralls, Inc