~nilium/clog

Fix pkg.go.dev badge
Fork clog for personal use

This is a fork of clog for personal use. It didn't seem worthwhile to
reimplement this when I was able to open source it before leaving
Kochava. The main reason for forking is that I would like the ability
to make breaking changes to the library that I don't think Kochava has
any need for (the state I left the original in is stable). Currently,
the main difference here is the removal of all the constructor
functions, because they don't have any real benefit over using what Zap
already provides via its level flags.
Fix README example

Move it into example_test.go so that it can be checked as well.
Add README, tidy go.mod, and add package comment

Doing this ahead of open sourcing it just so it's a little clean.
d5dc4541 — Noel Cower 5 years ago
Merge branch 'add-circleci'

* add-circleci:
  ci: Migrate to CircleCI

Signed-off-by: Noel Cower <ncower@gmail.com>
dd186031 — Noel Cower 5 years ago
ci: Migrate to CircleCI

Removes .gitlab-ci.yml and replaces it with a default-ish CircleCI
config.

Closes #1.
71ff946e — Noel Cower 5 years ago
Migrate to GitHub

This changes the package URL -- we're effectively treating this as
a new package, not the same one.
71114a33 — Noel Cower 5 years ago
Fix log level not being set in Config

Log level defaults to whatever's set in the particular config style
used (production or development) and doesn't respect caller choice.
This is probably a bug that was introduced when clog was refactored in
moving it to ireland.
0a307584 — Noel Cower 5 years ago
Add ISC license
c7c3dd74 — Noel Cower 5 years ago
Add coverage field to .gitlab-ci.yml
cf87daf3 — Noel Cower 5 years ago
Fix output flag on go tool cover

'o', not 'out'.
e06d1c5f — Noel Cower 5 years ago
Switch to Debian-based Go image

Don't really feel like installing git on every run.
dd1a6462 — Noel Cower 5 years ago
Add tags missing from CI task

After spending the last.. I don't know, several months, in Travis CI,
it's really annoying what's necessary to do this stuff. CircleCI would
also be nice.
6999349b — Noel Cower 5 years ago
Add CI script

This just runs the tests.
4e9908ce — Noel Cower 5 years ago
Add tests

Tests cover:
- Logger configuration
- Context loggers

Basically, it's just running config through a virtual environment (a
map of strings) to test configuration / argv0 process naming.

For context logging, it just assigns a logger that writes to an
observer and checks that the counts on those are valid before / after
filtering.
e7f14f2a — Noel Cower 5 years ago
Simplify configuration

Replaces the json/debug flags with a single isDev flag. This probably
falls under things that someone would brand as "opinionated" but the
goal here is to make it as clear-cut as possible when something is
production or development.
148461a3 — Noel Cower 5 years ago
Check errors on ParseBool

This is primarily to shut linters up.
888128af — Noel Cower 5 years ago
Remove unused LogFunc type

This isn't used in-package, so there's no reason to keep it.
ff7b6f18 — Noel Cower 6 years ago
Remove skipCallFrame

Pretty sure that was in there for some reason but stopped being used.
f7d448db — Noel Cower 6 years ago
Clean up NewFromEnv

Had a gross nested conditional that didn't work well. Can't suffer
that, so there's a new function for getting config from the
environment.
Next