Commit Graph

606 Commits

Author SHA1 Message Date
Peter Taoussanis 28e5490480 Fix: `(log nil)` should work as 'never log' 2013-12-01 20:03:37 +07:00
Peter Taoussanis 29113cc203 Update README 2013-12-01 20:03:37 +07:00
Peter Taoussanis 16d2345367 Add tools.logging dep for codox generation 2013-12-01 20:03:37 +07:00
Peter Taoussanis 3dc9d6522b `example-config` docstring hk 2013-12-01 20:03:37 +07:00
Peter Taoussanis d75a2db4dd Clean up postal appender, add new Carmine (Redis) appender 2013-12-01 20:03:37 +07:00
Peter Taoussanis 0a0bce8b69 Update project.clj 2013-12-01 20:03:37 +07:00
Peter Taoussanis 4e001ca77d Update CHANGELOG (+adopting `cider` style) 2013-12-01 20:03:37 +07:00
Peter Taoussanis 5f037c7fcd Update README 2013-12-01 20:03:36 +07:00
Peter Taoussanis f04aba6e0d Add new appender opt: `:appender-fmt-output-opts` 2013-12-01 20:03:36 +07:00
Peter Taoussanis f83b417cb0 Add `stacktrace` option to control aviso-ex fonts 2013-12-01 20:03:36 +07:00
Peter Taoussanis d8178eca16 nb - add explicit config support to `log`, `logf` macros 2013-12-01 20:03:36 +07:00
Peter Taoussanis 706f16b11c postal appender: use first 150 chars as subject 2013-12-01 20:03:36 +07:00
Peter Taoussanis 5ac604d66d Improve appender rate limiting: now specified as ncalls / window-msecs 2013-12-01 20:03:36 +07:00
Peter Taoussanis 39e568f4fc utils: add `rate-limit` fn 2013-12-01 20:03:36 +07:00
Peter Taoussanis 94a2d4d687 utils hk 2013-12-01 20:03:36 +07:00
Peter Taoussanis 413b2fd529 nb - major refactor (see commit msg for details)
CHANGES
 * DEPRECATED: `red`, `green`, `blue` -> use `color-str` instead.
 * Logging level is now located in `level-atom` rather than `config`.
   This is in prep for new config types. Old in-config levels will be
   respected (i.e. change is backwards compatible).
 * DEPRECATED: config `prefix-fn` has been replaced by the more flexible
   `fmt-output-fn`. Change is backwards compatible.
 * Built-in appenders have been simplified using the new `default-output`
   appender arg.
 * Per-appender `:prefix` option dropped - was unnecessary. If an appender
   wants custom output formatting, it can do so w/o using an in-config
   formatter.

FIXES
 * Messages are now generated _after_ middleware has been applied, allowing
   better filtering performance and more intuitive behaviour (e.g. changes
   to args in middleware will now automatically percolate to message content).
2013-12-01 20:03:36 +07:00
Peter Taoussanis c094f299a5 stacktraces: `clj-stacktrace`->`io.aviso.exception` for stacktrace printing 2013-12-01 20:03:36 +07:00
Peter Taoussanis fb1cc1620b misc hk 2013-12-01 20:03:36 +07:00
Matthew Batema 370f47b53e Fix link typo 2013-12-01 20:03:36 +07:00
Peter Taoussanis f2e18925b2 hk: update `refer-timbre` (notably add profiling stuff) 2013-12-01 20:03:36 +07:00
Peter Taoussanis 383e52aac1 Fix: broken namespace filter (mlb-) 2013-12-01 20:03:35 +07:00
Peter Taoussanis dc0f7556c2 Deps: Clojure 1.6.0-alpha2 (for tests), lein-ancient 0.5.4 2013-12-01 20:03:35 +07:00
Peter Taoussanis 71712fff5f Housekeeping: ccb5b3e (Android appender) 2013-12-01 20:03:35 +07:00
Adam Clements 1df74f9ab1 Android appender 2013-11-08 18:14:21 +00:00
Peter Taoussanis 2f51612c20 Utils: drop (deprecated) `frequencies` 2013-11-08 21:55:05 +07:00
Peter Taoussanis 1f15c046e0 Utils: update `memoize-ttl` 2013-11-08 21:54:12 +07:00
Peter Taoussanis 7cff8b7b96 Deps: lein-ancient 0.5.3 2013-11-08 21:52:39 +07:00
Peter Taoussanis a8ebec06d5 v2.7.1 2013-11-06 20:46:57 +07:00
Peter Taoussanis e48128c6d6 Profiling: housekeeping, fix `defnp` for multi-form bodies 2013-11-06 20:44:43 +07:00
Peter Taoussanis cf9c6eaf32 v2.7.0 2013-11-06 15:47:10 +07:00
Peter Taoussanis b0fef3d5ce core: don't run getHostName on the main thread (AdamClements) 2013-11-06 15:47:10 +07:00
Peter Taoussanis 1157a0e97c profiling: add `defnp` macro 2013-11-06 15:47:10 +07:00
Peter Taoussanis afd8a87b11 Merge pull request #34 from mopemope/rotor
Add Simple Rotating File Appender (mopemope)
2013-10-25 01:51:57 -07:00
mopemoepe 33fbbb9c98 Add Simple Rotating File Appender 2013-10-24 09:53:56 +09:00
Peter Taoussanis de9d1b001e Housekeeping 2013-10-22 13:29:23 +07:00
Peter Taoussanis a29879d1f9 Merge pull request #33 from aperiodic/profiling-fixes
Compile->runtime profiling keyword names (aperiodic)
2013-10-21 22:57:26 -07:00
aperiodic 411d16ed1f Fix profiling keyword construction.
Allow for dynamic keywords constructed from runtime data.

Prefix unqualified keywords with the namespace they are used in, rather
than 'taensso.timbre.profiling.
2013-10-21 15:59:20 -07:00
Peter Taoussanis 780276ab61 v2.6.3 2013-10-18 12:18:01 +07:00
Peter Taoussanis 28ee9e2a53 Merge pull request #32 from bitemyapp/patch-1
Fixes Null Pointer Exception in clj-stacktrace (bitemyapp)
2013-10-17 22:16:16 -07:00
Chris Allen 25f7371474 Fixes Null Pointer Exception in clj-stacktrace (can be triggered by using timbre/error) 2013-10-17 10:53:08 -07:00
Peter Taoussanis 8511a68aaf Update lein aliases 2013-10-12 16:37:50 +07:00
Peter Taoussanis 7689d5fca7 Move `expectations` dependency to `:test` profile 2013-10-03 21:25:58 +07:00
Peter Taoussanis 6e7114cb65 Deps 2013-09-25 16:13:02 +07:00
Peter Taoussanis acd6d7b5e9 v2.6.2 2013-09-25 16:01:26 +07:00
Peter Taoussanis a6f287fe38 Merge pull request #27 from ticking/stdout-atomicity
Fix `str-println` newline
2013-09-25 01:13:21 -07:00
Peter Taoussanis 3d1ee6b45b Merge pull request #26 from chiaolun/master
Fix timbre.tools.logging/use-timbre (needs var)
2013-09-25 01:06:21 -07:00
Jan-Paul Bultmann 168ba46c24 Restores the standard-out appender's thread safety.
Since commit 71218f7086 `str-println`
no longer prints the newline with the other output, this is restored.
2013-09-12 18:50:43 +02:00
Chiao 1d592b85cb fixed timbre.tools.logging/use-timbre 2013-09-10 11:09:59 +00:00
Peter Taoussanis a6ecb2c1e6 Make ns-filter runtime again
The compile-time filtering can trip up in surprising ways, and doesn't
work with tools.logging.

This commit switches back to a runtime ns filter which is a teeny, tiny
bit slower - but always predictable.
2013-08-22 21:58:27 +07:00
Peter Taoussanis a1bf286084 Merge branch 'perf' 2013-08-21 14:07:10 +07:00