Commit Graph

542 Commits

Author SHA1 Message Date
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
Peter Taoussanis b510633f03 Add `refer-timbre` 2013-07-22 17:53:36 +07:00
Peter Taoussanis 07fdddf2f2 NB: Fix v2.3.2 regression 2013-07-21 17:32:18 +07:00
Peter Taoussanis 62ed4086ea Wrap 95109b7 body expansion in `(do)` for hygiene 2013-07-20 22:23:34 +07:00
Peter Taoussanis 7961a8d807 Make `log` an alias for `logp` 2013-07-20 15:15:49 +07:00
Peter Taoussanis 95109b7451 Allow `pspy` to capture time for exception-throwing bodies (thanks Jacek Lach) 2013-07-20 00:39:44 +07:00
Peter Taoussanis 807cb40e0f Housekeeping: profiling & freqs 2013-07-20 00:39:44 +07:00
Peter Taoussanis ce9ea0ac76 Add `with-log-level` for thread-local logging levels 2013-07-10 13:45:31 +07:00
Peter Taoussanis f5a507765c Add cjwz logo to README 2013-07-09 16:20:38 +07:00
Peter Taoussanis 3a5687a546 Bump version (2.2.0) for pending updates 2013-07-09 16:20:38 +07:00
Peter Taoussanis a3fb7cde78 Bump non-core deps 2013-07-09 13:28:29 +07:00
Peter Taoussanis 0945b83009 Housekeeping: rename `utils/deep-merge` -> `utils/merge-deep` 2013-07-06 00:54:25 +07:00
Peter Taoussanis a5deb8ac2f Add CHANGELOG.md 2013-06-27 19:20:01 +07:00
Peter Taoussanis f3c3fec2cc Merge branch 'emlyn-mongo' 2013-06-27 15:06:30 +07:00
Peter Taoussanis 634223bdbc Merge branch 'mongo' of github.com:emlyn/timbre into emlyn-mongo 2013-06-27 15:06:08 +07:00
Emlyn Corrin b7ec7ae71b Remove restriction on :throwable, default to all but :ap-config 2013-06-26 18:02:09 +01:00
Peter Taoussanis 7050f7d205 Bump dependency (clj-stacktrace 0.2.6) 2013-06-26 18:34:55 +07:00
Peter Taoussanis 137a49faa3 Lein :warn-on-reflection -> :global-vars 2013-06-26 18:12:06 +07:00
Peter Taoussanis bfe517634f Add `codox` lein alias 2013-06-26 17:08:46 +07:00
Peter Taoussanis 7ff8835659 Add `before-run`, `after-run` Expectations fns 2013-06-26 14:47:52 +07:00
Peter Taoussanis 05ff38c7b4 Clean up project.clj, add Clojure 1.6 test 2013-06-25 15:12:17 +07:00
Peter Taoussanis 25cc163c34 Tweak README 2013-06-22 17:43:56 +07:00
Peter Taoussanis 2c1d7cd221 Bump dep (core.tools 0.1.2) 2013-06-15 22:30:20 +07:00
Peter Taoussanis f3d704bc45 Merge pull request #18 from emlyn/socket
TCP Socket Appender (emlyn)
2013-06-14 20:37:42 -07:00
Peter Taoussanis 71218f7086 Allow no-message throwable logging, use `str` for ex-data printing 2013-06-07 20:45:33 +07:00
Peter Taoussanis 5d4e5f2739 Fix ex-data separator 2013-06-07 20:22:00 +07:00
Peter Taoussanis 092f3b7925 Bump version (2.1.0) 2013-06-07 20:16:15 +07:00
Peter Taoussanis eaa4495e49 Add `ex-data` output to `stacktrace` fn 2013-06-07 20:15:07 +07:00
Emlyn Corrin 9741aaa92d Improve README 2013-06-06 12:40:50 +01:00
Emlyn Corrin f802ede826 Simplify README 2013-06-05 18:24:28 +01:00
Emlyn Corrin 7cfae88eb3 Add more default keys, allow setting write-concern 2013-06-05 18:19:18 +01:00
Emlyn Corrin e7bf5015e9 Make threads daemons to not block shutdown, add stacktrace, default to localhost only but allow :all 2013-06-05 16:45:59 +01:00
Emlyn Corrin e5852a6676 Cleanup 2013-06-05 14:28:18 +01:00
Peter Taoussanis f1d2d89713 Bump version (2.0.1) 2013-06-05 20:16:52 +07:00
Peter Taoussanis 912dfb46d0 Fix: `log*` return value should be `nil`, not `true` 2013-06-05 20:16:29 +07:00
Emlyn Corrin 0613ae66bb Cleanup 2013-06-05 14:03:04 +01:00
Emlyn Corrin 6dac0ec03e Add socket appender 2013-06-05 13:52:23 +01:00
Emlyn Corrin fff4a85b5d Add MongoDB appender 2013-06-05 13:06:11 +01:00
Peter Taoussanis 1039912094 README typo 2013-06-01 20:08:45 +07:00
Peter Taoussanis 3a94e550c7 Refresh README 2013-06-01 19:44:32 +07:00
Peter Taoussanis 2c6939a327 project.clj housekeeping, add Codox as plugin 2013-06-01 19:36:31 +07:00
Peter Taoussanis f0d71af005 Merge branch 'dev' 2013-06-01 19:35:13 +07:00
Peter Taoussanis 43434921a3 Bump version (2.0.0) 2013-06-01 19:31:51 +07:00
Peter Taoussanis e59918b59f Bump version (2.0.0-SNAPSHOT) 2013-06-01 19:31:21 +07:00
Peter Taoussanis 0dea5a430b BREAKING: Bump minimum Clojure version (1.4) 2013-06-01 19:31:21 +07:00
Peter Taoussanis 7b09d1a562 BREAKING: Refactor Timbre for integration with clojure.tools.logging & logf macros
BREAKING CHANGES:
* Custom appenders that rely on the :more argument will no longer function correctly.
* Stacktraces are no longer automatically generated at the `log`-macro level, but are
left as an appender implementation detail. A :throwable appender argument has been added
along with a `stacktrace` fn.

MIGRATION GUIDE:
* :message is now a string of all arguments as joined by `logp`/`logf`. Appenders that
need unjoined logging arguments (i.e. raw arguments as given to `logp`/`logf`) should
use the new :log-args vector.

MOTIVATION:
The :more argument was always kind of manky.

By joining logging arguments at the `log`-macro level, we simplify appender
implementations and allow the use of different joining strategies like `logp` and
`logf`.

This approach also fits better with the `tools.logging` API, allowing a cleaner
Logger implementation.
2013-06-01 19:29:57 +07:00
Peter Taoussanis 6fc6baee37 Rename appender argument: :max-message-per-msecs -> :limit-per-msecs (backwards compatible) 2013-06-01 19:29:57 +07:00
Peter Taoussanis c30ae5fbcc Housekeeping 2013-06-01 19:29:57 +07:00