Commit Graph

604 Commits

Author SHA1 Message Date
Peter Taoussanis f399d250cb [#174] Smarter (faster) spit appender path creation 2016-07-01 16:44:31 +07:00
Peter Taoussanis ba6bc3f79c v4.5.1 2016-06-29 12:00:56 +07:00
Peter Taoussanis 64dc0f52aa Assist with https://github.com/fzakaria/slf4j-timbre/issues/20
Users have reported seeing `Wrong number of args (9) passed to: timbre/-log!`
errors via slf4j-timbre when upgrading from Timbre v4.4.0 -> v4.5.0.

slf4j-timbre already uses the correct public API (timbre/log!), so this looks
like an AOT issue: a compiled Timbre v4.4.0 `log!` macro expansion is calling
a `v4.5.0` `-log!` function and breaking.

Unfortunately, looks[1] like a user-level call to `lein clean` isn't enough to
resolve the issue. Might be that slf4j-timbre itself needs to be recompiled?

Whatever the underlying cause, this should be a reasonable workaround for now.

[1] : https://github.com/fzakaria/slf4j-timbre/issues/20#issuecomment-229254285
2016-06-29 12:00:52 +07:00
Peter Taoussanis 0a765cb9ca Fix missing SimpleDateFormat type hint 2016-06-29 11:55:16 +07:00
Peter Taoussanis b1a2e8c140 v4.5.0 2016-06-26 13:35:52 +07:00
Peter Taoussanis 49830fe798 Profiling: add experimental low-level `profiled` util 2016-06-23 18:45:49 +07:00
Peter Taoussanis 7b9d9b31c8 Profiling: final performance work (nb: don't squash)
Choosing not to squash into previous commit since we're introducing
a bunch of JVM-specific code here. If we do later decide to do a
.cljx port, will be handy to have the previous code around as a
platform agnostic option.
2016-06-23 18:42:08 +07:00
Peter Taoussanis d7b22c53c4 Profiling: NB refactor ns (incl. *signf.* perf bumps) 2016-06-23 18:41:58 +07:00
Peter Taoussanis fa1740e7fb Update 3rd-party appenders 2016-06-23 18:41:45 +07:00
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