Simon Eskildsen
f58674a4a6
Merge pull request #11 from anthonybishopric/defer_formatting
...
Defer formatting of log values in Levelf(), Levelln()
2014-03-25 19:14:25 -04:00
Anthony Bishopric
9f6da0e77c
Defer formatting of log values in Levelf(), Levelln()
...
The Level() family of log methods defer formatting of log
values until it is confident that the log level needs them.
This change allows that deferral to happen at the Levelf()
and Levelln() levels too.
This commit also adds benchmarks to demonstrate the improved
performance of these functions
2014-03-25 14:54:31 -07:00
Simon Eskildsen
f9af352362
Merge pull request #10 from pushrax/add-forced-colors
...
Add option to force TextFormatter to use colors
2014-03-16 16:17:15 -07:00
Justin Li
cc1a5b95bc
Add note about ForceColors in the README
2014-03-16 17:27:31 -04:00
Simon Eskildsen
5394f63d6b
Merge pull request #9 from pushrax/fix-error-color
...
Set color to red for error level output
2014-03-16 14:00:54 -07:00
Justin Li
436d68deda
Add option to force TextFormatter to use colors
2014-03-15 23:41:05 -04:00
Justin Li
c999e7c963
Set color to red for error level output
2014-03-15 23:34:03 -04:00
Simon Eskildsen
f33bbddc25
Merge pull request #7 from aybabtme/third_party_formatter
...
Add link to third party formatter in README.
2014-03-14 16:57:04 -04:00
Antoine Grondin
7e4ec7df6c
Third party formatter to README.
2014-03-14 16:45:20 -04:00
Simon Eskildsen
7d02fa59d7
examples: change size to integer
2014-03-14 16:17:38 -04:00
Simon Eskildsen
c26c4c5ff6
Merge pull request #6 from aybabtme/typo_in_println
...
Fix logger.StdLogger to really be a plugin stdlib/log.Logger.
2014-03-14 15:16:24 -04:00
Antoine Grondin
bf45b308e9
Rename StandartLogger. Clean way to assert log.Logger realizes logrus
...
interface.
2014-03-14 15:07:57 -04:00
Antoine Grondin
97e1bef2cc
Fix logger.StdLogger to really be a plugin stdlib/log.Logger.
2014-03-14 14:50:08 -04:00
Simon Eskildsen
57071602e3
readme: remove todo on text formatter
2014-03-14 13:57:55 -04:00
Simon Eskildsen
0998f68ad5
text_formatter: ensure quoting of strings
2014-03-14 13:32:49 -04:00
Simon Eskildsen
52eb1c0f57
text_formatter: use %v instead
2014-03-14 13:15:01 -04:00
Simon Eskildsen
f84cc365b1
readme: add textformatter example to readme without tty
2014-03-14 13:02:15 -04:00
Simon Eskildsen
1000975e52
text_formatter: change to simpler k-v when no tty
2014-03-14 13:01:06 -04:00
Simon Eskildsen
ddcbea3dba
license: add MIT
2014-03-13 09:23:52 -04:00
Simon Eskildsen
cf9baa9ace
readme: add godoc
2014-03-13 08:44:08 -04:00
Simon Eskildsen
d02c5b387e
docs: add documentation for godoc
2014-03-12 10:34:29 -04:00
Simon Eskildsen
1e8a799618
entry: move hook firing to entry.log
2014-03-12 10:10:22 -04:00
Simon Eskildsen
cd5805716d
readme: add notes on logging levels
2014-03-12 08:00:18 -04:00
Simon Eskildsen
44ead10986
readme: complete hook example
2014-03-12 07:59:22 -04:00
Simon Eskildsen
e469287329
readme: add walrus
2014-03-11 11:09:36 -04:00
Simon Eskildsen
c86733fba0
readme: add more motivation for fields
2014-03-11 11:01:30 -04:00
Simon Eskildsen
8fb601a60b
Merge pull request #3 from bouk/less-code=better
...
hooks: Remove unnecessary explicit slice creation
2014-03-11 10:56:33 -04:00
Bouke van der Bijl
927450cad5
hooks: Remove unnecessary explicit slice creation
2014-03-11 10:45:27 -04:00
Simon Eskildsen
1399b22d12
readme: fix hook
2014-03-10 23:23:53 -04:00
Simon Eskildsen
333c89518d
readme: add todo
2014-03-10 21:15:25 -04:00
Simon Eskildsen
7056845d0f
readme: add other hook example
2014-03-10 20:32:22 -04:00
Simon Eskildsen
9f6d81e31e
readme: add golang
2014-03-10 20:07:22 -04:00
Simon Eskildsen
2bb88683a1
readme: cleanup
2014-03-10 20:06:39 -04:00
Simon Eskildsen
6957054c60
readme: fix description
2014-03-10 20:01:41 -04:00
Simon Eskildsen
f234137534
readme: add examples of json
2014-03-10 20:01:07 -04:00
Simon Eskildsen
0719d9a9d8
readme: fix image
2014-03-10 20:00:07 -04:00
Simon Eskildsen
ec306913da
Fix example
2014-03-10 19:59:18 -04:00
Simon Eskildsen
afde6aea11
levels: add to logger type
2014-03-10 19:52:39 -04:00
Simon Eskildsen
d3ee06cc28
readme: add comments
2014-03-10 19:30:06 -04:00
Simon Eskildsen
23c5312e67
readme: update
2014-03-10 19:27:19 -04:00
Simon Eskildsen
090d6b7550
Merge pull request #1 from Sirupsen/initial
...
Initial commit
2014-03-10 19:22:35 -04:00
Simon Eskildsen
53371e3664
Add features from README
2014-03-10 19:22:08 -04:00
Simon Eskildsen
e155f76d1b
readme: remove error
2014-03-08 10:55:15 -05:00
Simon Eskildsen
8fe53025b6
readme: update after removing env
2014-03-07 12:51:29 -05:00
Simon Eskildsen
7769e38bec
readme: add setting level instructions
2014-03-06 21:49:47 -05:00
Simon Eskildsen
8492d88e94
readme: dont use printf
2014-03-06 21:26:05 -05:00
Simon Eskildsen
52eb6b2fe6
readme: update
2014-03-06 21:20:13 -05:00
Simon Eskildsen
f803b61ca1
entry: keys colored by severity
2014-03-06 09:56:52 -05:00
Simon Eskildsen
494c757ca7
Merge pull request #2 from burke/initial
...
This is sort of what I want the log output to look like.
2014-03-06 09:40:59 -05:00
Burke Libbey
e3978aa87c
morehax
2014-03-04 11:44:09 -05:00