Commit Graph

545 Commits

Author SHA1 Message Date
Peter Taoussanis 682fa62334 Update core appenders
Note Carmine appender output change for `query-entries` util.
2016-06-23 18:41:45 +07:00
Peter Taoussanis e5b95cbd75 NB Refactor appenders API, implementation
Appender arg changes:
  - REMOVED: :data-output-fn, :hash-arg_
  - Deprecated: :?err_, :vargs_ (no point in delaying these now)
  - New: :?err, :vargs, :?msg-fmt, :hash_, :output_, :?meta

Implementation notes:
  - Have unified all vargs processing during margs phase
  - vargs no longer contains message format; now extracted as separate :?msg-fmt
  - :output-fn and :timezone_ are now cached between appenders when possible
  - :output_ now provides a convenient, cache-aware way of getting formatted ouput
  - Hash stuff is now non-configurable but far more predictable; if appenders
    have specific needs beyond :hash_, they should use a custom (fn [data]).
2016-06-23 18:40:00 +07:00
Peter Taoussanis 02c8fef812 [#172] Housekeeping 2016-06-17 00:46:20 +07:00
Carlos Cunha 81e779b630 [#172] Allow disabling ANSI colours with env var (@ccfontes) 2016-06-16 22:53:20 +07:00
Peter Taoussanis 606562cdcd v4.4.0 2016-06-10 11:50:00 +07:00
Peter Taoussanis ed88597356 [#171] Add support for appender-level ns filters 2016-06-10 11:43:53 +07:00
Peter Taoussanis 5a1a5253e2 Bump deps 2016-06-10 11:24:21 +07:00
Mike Sperber bd3d4b6707 [#168] Make rotor appender thread-safe (@mikesperber) 2016-05-10 15:56:14 +07:00
Peter Taoussanis 88bbff347b [#165] Hotfix: don't cache cljs console appender's `js/console` 2016-05-10 15:55:22 +07:00
David Frese 2adbabee8d [#166] Add 3rd-party logstash appender (@dfrese) 2016-04-28 12:59:38 +07:00
Peter Taoussanis b86eb0d0e6 [#163] Fix surprising `merge-config` nil behaviour 2016-04-16 11:20:42 +07:00
Peter Taoussanis 32d6892747 Bump deps 2016-04-16 11:20:42 +07:00
Peter Taoussanis 4cb1dcc0ed Update example appender 2016-04-16 11:20:41 +07:00
Peter Taoussanis 599bf5a28a Revert "Update Carmine appender for Nippy v2.12+ API changes"
This reverts commit a044ef2d5f.

Would rather provide back-compatibility Nippy side to prevent all
the dep conflicts that this'll lead to
2016-04-16 11:20:13 +07:00
Peter Taoussanis a044ef2d5f Update Carmine appender for Nippy v2.12+ API changes 2016-04-13 18:29:16 +07:00
Peter Taoussanis 73a50c4851 [#160] Rename ns 2016-03-31 11:24:15 +07:00
Peter Taoussanis 345a0d03f5 [#160] Housekeeping 2016-03-31 11:21:00 +07:00
yuliu-mdsol f984bc8e08 [#160] Add PostgreSQL appender (@yuliu-mdsol) 2016-03-31 10:51:01 +07:00
Peter Taoussanis 59895afcba [#159] Housekeeping 2016-03-29 01:23:18 +07:00
Simon Belak 495dd453ed [#159] Add Slack appender (@sbelak) 2016-03-29 01:18:04 +07:00
Peter Taoussanis 5563bc8e64 Add example appender ns 2016-03-11 13:13:58 +07:00
Peter Taoussanis 93044a4201 Add backers link to README 2016-03-11 11:05:23 +07:00
Peter Taoussanis 087a5d9761 CLJ1098 was fixed with Clojure 1.5 (our min) 2016-03-02 12:47:27 +07:00
Peter Taoussanis 1c23146979 v4.3.1 2016-02-28 12:12:17 +07:00
Peter Taoussanis 10c5ebc426 [#157] Hotfix: profile macro refering to removed var 2016-02-28 12:07:36 +07:00
Peter Taoussanis 551b1e9dbf Clarify README example [#156] 2016-02-27 09:30:52 +07:00
Peter Taoussanis d65766f293 v4.3.0 2016-02-26 15:32:50 +07:00
Peter Taoussanis 46376869be Misc hk 2016-02-26 15:32:49 +07:00
Peter Taoussanis 36785d6871 Some (limited) manual help against CLJ-865 [#132]
This is a bit of a pita (and still doesn't solve issues when user
adds logging calls w/in her own macros); but it's better than nothing
while we wait on some kind of resolution to CLJ-865.
2016-02-26 15:32:49 +07:00
Peter Taoussanis a3d52f5594 Refactor console logger, incl. Ref from #132
This lets folks more easily use Chrome blackboxing but it'd still be
nice to get a proper general-case line number solution.

Seems like our options are:
  1. Waiting on CLJ-865 (which'd still leave us w/o accurate source
     map links?).
  2. Something like https://gist.github.com/bgrins/5108712 (doesn't
     seem possible if we want a more elaborate wrapper?)
  3. Other ideas??
2016-02-26 15:32:49 +07:00
Peter Taoussanis 7da33216a1 Bump deps 2016-02-26 15:32:49 +07:00
Peter Taoussanis fd0553df0d Housekeeping for [#151] 2016-02-26 15:32:49 +07:00
Dom Kiva-Meyer eefad451d7 [#151] Allow compile-time log level to be set with system property
This is useful since it allows one to dynamically set the log level
prior to ClojureScript compilation. Specifically, I would like to
use this inside of a Boot task.
2016-02-26 15:32:49 +07:00
Peter Taoussanis acf9ee8563 README housekeeping 2016-02-26 15:32:49 +07:00
Peter Taoussanis 542d76ae23 v4.3.0-RC1 2016-01-27 13:25:36 +07:00
Peter Taoussanis db8f8a8759 Refactor manual hashing control (fully back-compatible)
Hashing is still done on a data level as before (with arb data-hash-fn);
difference is that {:timbre/hash _} arg0 support is now baked in to core
logging impl. rather than just the default data hash fn.

Effect: a new `:?hash-arg` is now provided as part of core data and will
be available to any data-hash-fns.

New implementation is also cleaner + faster.
2016-01-27 13:17:10 +07:00
Peter Taoussanis a8505032cb Bump deps 2016-01-27 10:22:33 +07:00
Peter Taoussanis e9e20ef88e Expose an official low-level logging API for tools, etc. 2016-01-27 10:21:57 +07:00
Peter Taoussanis e611f7a584 Perf: `rsome` for hash fn 2016-01-27 10:21:57 +07:00
Peter Taoussanis a26ecc6a96 Protect appenders from delay replacement through middleware
- This simplifies the requirements for appender authors.
  - Note that middleware authors still need to be careful since
    it'd be infeasible to offer similar protection between each
    individual layer of middleware.
2016-01-27 10:21:57 +07:00
Peter Taoussanis f8a83fd798 Housekeeping for #147 2016-01-23 13:55:24 +07:00
Dave Owens df96b2ba58 [#147] Add gelf appender (@davewo)
Add third-party appender to support sending gelf messages to a logging server (such as Graylog)
2016-01-23 13:44:25 +07:00
Peter Taoussanis d132d443e5 README tweaks 2016-01-23 13:44:24 +07:00
Peter Taoussanis a9874fbccd Update README template 2016-01-14 12:24:51 +07:00
Peter Taoussanis 560fc46870 v4.2.1 2016-01-14 12:19:53 +07:00
Peter Taoussanis 41b4a5dd75 Bump deps 2016-01-14 12:19:53 +07:00
Peter Taoussanis 8271ba9a0b [#146] Fix executor type ambiguity with Clojure 1.6?
Having difficulty reproducing the error described by the GitHub issue.

Figure the cause might have something to do with attaching the type info
to the (fn []) form? The approach as of this commit seems like it'd be
less likely to trip up the compiler.
2016-01-14 12:19:53 +07:00
Peter Taoussanis d08b0bd174 v4.2.0 2015-12-27 10:12:27 +07:00
Peter Taoussanis e48dea517e Use encore `get-env` impln 2015-12-27 09:58:52 +07:00
Peter Taoussanis 663f1a754e Bump deps 2015-12-27 09:58:52 +07:00