Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement json formatting and static fields #5

Merged
merged 26 commits into from
Jul 15, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3ddb55f
Implement json formatting and static fields
heewa Jun 30, 2015
d281aa8
Remove json prefix for now.
heewa Jun 30, 2015
a1189cb
Format using formatter, extendable private interface
heewa Jun 30, 2015
f2ac5fe
Rename SetStaticField for clarity
heewa Jun 30, 2015
b74d667
Switch to typed LogLevel
heewa Jul 2, 2015
22b8201
Check for log level using typed consts
heewa Jul 2, 2015
913b4a0
Switch fully to interface, with new New and NewDefault fns
heewa Jul 2, 2015
9119ccf
Separate formatting and printing responsibilities
heewa Jul 2, 2015
6728ed3
Rename encoding env to be consistent with others
heewa Jul 2, 2015
56d7c6c
Use regular fns for formatting
heewa Jul 6, 2015
713fb06
Test init fn
heewa Jul 13, 2015
522c576
Test SetPrefix fn
heewa Jul 13, 2015
1051ac5
Test Fatal logging fns
heewa Jul 13, 2015
de3cf62
Test logging with lower than fatal level
heewa Jul 13, 2015
914ba3f
Test SanitizeFormat fn
heewa Jul 14, 2015
2a66098
Specify log level types
heewa Jul 14, 2015
8f96f8f
Harden prefix-format test with regex
heewa Jul 14, 2015
8038e47
Test JsonFormat with prefix through env var
heewa Jul 14, 2015
2593bb0
Test json formatting
heewa Jul 14, 2015
02a8098
Test static & dynamic fields
heewa Jul 14, 2015
ba44b72
Override static fields in plain text logger
heewa Jul 14, 2015
ed1c737
Test static/dynamic field in both formats
heewa Jul 14, 2015
a23fc67
Test setting static fields on existing logger
heewa Jul 14, 2015
dacb64e
Manually set types on log level consts
heewa Jul 14, 2015
0a2f892
Test logger logging fns
heewa Jul 14, 2015
119722d
Ignore son error for 100% test coverage
heewa Jul 14, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion log/log_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package log_test
package log

import (
. "github.com/onsi/ginkgo"
Expand Down
Loading