125 Commits

Author SHA1 Message Date
Peter Taoussanis
a7fbaf087a make-timestamp-fn is now public 2013-12-04 12:36:17 +07:00
Peter Taoussanis
40a3e58545 Pull default fmt-output-fn out of config (useful in custom reporting, etc.) 2013-12-02 16:12:24 +07:00
Peter Taoussanis
2a303ef2af Carmine appender: reconstitute :instant as Date rather than Long 2013-12-02 16:01:48 +07:00
Peter Taoussanis
8e5329e79f Add unified arg hashing (rate limiter, Carmine appender, etc.) 2013-12-01 22:33:40 +07:00
Peter Taoussanis
136d3553ba Carmine appender: add configurable hash fn 2013-12-01 20:04:14 +07:00
Peter Taoussanis
05326dcfae misc hk 2013-12-01 20:03:37 +07:00
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
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
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
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
e48128c6d6 Profiling: housekeeping, fix defnp for multi-form bodies 2013-11-06 20:44:43 +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
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
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
a6f287fe38 Merge pull request #27 from ticking/stdout-atomicity
Fix `str-println` newline
2013-09-25 01:13:21 -07:00
Jan-Paul Bultmann
168ba46c24 Restores the standard-out appender's thread safety.
Since commit 71218f708607e121f7097c740d850b76b83f655a `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
4cc5bf3b47 Make ns-filter check compile-time, add optional compile-time logging-level 2013-08-21 14:00:08 +07:00
Peter Taoussanis
bad95553c2 Mark taoensso.timbre.frequencies ns as deprecated 2013-08-20 22:42:19 +07:00
Peter Taoussanis
77beb18032 Refactor log macro implementations 2013-08-07 23:44:35 +07:00
Peter Taoussanis
fd03c042e9 Disable :line appender arg (broken) 2013-08-07 22:07:44 +07:00
Peter Taoussanis
718f38c462 Make make-timestamp-fn thread safe (thanks to jarppe for report) 2013-08-07 12:44:37 +07:00
Peter Taoussanis
382f9d4f9a Add :file and :line appender args (thanks to jarppe for suggestion) 2013-08-07 12:18:46 +07:00
Peter Taoussanis
8789358c7d Extend refer-timbre to logf macros 2013-07-30 20:50:36 +07:00
Peter Taoussanis
2d38d2a970 Add output pattern TODO 2013-07-23 21:38:05 +07:00
Peter Taoussanis
545c278394 Allow fspy to capture freq for exception-throwing bodies 2013-07-23 14:43:14 +07:00
Peter Taoussanis
ce4c9c34de Use Throwable as Postal appender subject when no other args given 2013-07-22 22:41:15 +07:00
Peter Taoussanis
ddd9e18d8e Clean up spy error logging, catch Throwables for log-errors, log-and-rethrow-errors 2013-07-22 22:41:15 +07:00
Peter Taoussanis
853807df4c Housekeeping 2013-07-22 22:21:49 +07:00
Peter Taoussanis
758c370ac7 Deprecate logp, s 2013-07-22 22:21:07 +07:00