Commit Graph

301 Commits

Author SHA1 Message Date
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 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 e48dea517e Use encore `get-env` impln 2015-12-27 09:58:52 +07:00
Peter Taoussanis b09d5611a6 `get-env`: clear primitive (tag) sym metadata 2015-12-27 09:58:52 +07:00
Peter Taoussanis d913721865 [#133] Faster + more flexible str joins (Clojure 1.7+)
Needs transducers, otherwise falls back to the old method.
2015-12-27 09:58:50 +07:00
Peter Taoussanis aadfd929ee Experimental: compile-time p elision 2015-12-27 09:58:37 +07:00
Peter Taoussanis 44a3798c93 Offload date formatting shorthands to encore 2015-12-27 09:58:15 +07:00
Peter Taoussanis 47cf2121f6 [#141] Housekeeping 2015-12-27 09:58:01 +07:00
Ryan Fowler d59d902611 [#141] Use java.util.concurrent.ExecutorService/submit instead of `future` (@ryfow)
(future) starts the agent threadpool, which slows down shutdown unless
(shutdown-agents) is called.
2015-12-27 09:58:01 +07:00
Dan Sapala ffe66948c6 [#140] Create log path in rotor appender (@dsapala) 2015-12-27 09:58:00 +07:00
Russell e61fabf0d6 [#137] Add &args support to `swap-config!` (@rsslldnphy) 2015-12-27 09:58:00 +07:00
Peter Taoussanis 7c3afe499b [#135] Default yy-MMM-dd -> yy-MM-dd pattern (sortable) 2015-12-27 09:58:00 +07:00
Peter Taoussanis 12efc4beb3 [#135] Switch default timestamp timezone to UTC, add some shorthands 2015-12-27 09:58:00 +07:00
Peter Taoussanis 2abc1dd3d3 [#67] Add (deprecated) `logp` macro back from v3.x 2015-09-26 12:15:19 +07:00
Peter Taoussanis 8ddd5a1dc9 Bump deps 2015-09-26 12:15:19 +07:00
Peter Taoussanis a991195549 [#127] Nb remove auto shutdown hook 2015-08-16 11:20:11 +07:00
Peter Taoussanis d4b0d4b3ad [#125] Fix rotor appender credits
Original PR here: https://github.com/ptaoussanis/timbre/pull/34/files
I'd incorrectly assumed the submitter was the author, but the original
source was actually https://goo.gl/OoBOZU by @postspectacular.

Entirely my error (@ptaoussanis), apologies!
2015-08-07 23:40:33 +07:00
Peter Taoussanis 02531eb01f [#116] Add :context key to appender data (@mikesperber) 2015-07-29 13:42:26 +07:00
Peter Taoussanis b37ace035e Refactor profiling fn macros 2015-07-29 13:42:26 +07:00
Peter Taoussanis a64fb0f1d5 Add `profiling/fnp` macro 2015-07-29 13:42:26 +07:00
Peter Taoussanis 6bcf5135d0 Make it more obvious how to disable stacktrace fonts 2015-07-20 18:40:34 +07:00
Jeff Rose 09c0a46881 Add unit test for 3rd-party rotor appender (@rosejn) 2015-07-06 16:02:23 +07:00
Peter Taoussanis cdf46f3558 [#110] Fix incorrect tools.logging log1-fn call arity (@Guthur) 2015-06-26 12:51:03 +07:00
Peter Taoussanis bca2288e55 Clarify docstring 2015-06-26 12:51:03 +07:00
Peter Taoussanis 03b9ab5c08 Housekeeping for 7163f91 2015-06-26 12:51:03 +07:00
Dmitri Sotnikov 7163f91fbd [#105, #107] Fix broken v4 3rd-party appender: rotor (@yogthos) 2015-06-26 12:48:04 +07:00
Peter Taoussanis 110f6d32b1 Add `get-env`, `log-env` to `refer-timbre` 2015-06-13 19:28:29 +07:00
Peter Taoussanis a643bb3950 [#103] Add `get-env`, `log-env` utils (@RickMoynihan) 2015-06-12 20:19:33 +07:00
Peter Taoussanis cb51b0e393 README hk 2015-06-08 10:32:02 +07:00
Peter Taoussanis fd4feb9d3e Document elision stuff 2015-05-29 12:37:52 +07:00
Peter Taoussanis faa9996e8c Elision warnings 2015-05-29 12:06:31 +07:00
Peter Taoussanis 4748743dd1 Add dynamic :stream opts to core println appender 2015-05-29 12:01:17 +07:00
Peter Taoussanis 379bf9d876 Add `handle-uncaught-jvm-exceptions!` util 2015-05-29 09:13:21 +07:00
Peter Taoussanis 621ffe83d1 Bench entire call->dispatch flow 2015-05-29 09:13:21 +07:00
Peter Taoussanis 9b4c760173 Allow postal appender to use inherited output-fn 2015-05-29 09:13:20 +07:00
Peter Taoussanis e650148d26 Misc hk 2015-05-28 14:36:01 +07:00
Peter Taoussanis 142a2d9d08 Nb simplify appenders config, output API 2015-05-28 13:48:57 +07:00
Peter Taoussanis 2452041296 Misc housekeeping 2015-05-28 13:48:57 +07:00
Peter Taoussanis e6fe2bac4b v4.0.0-beta2 (clarify ns filter args) 2015-05-26 22:40:56 +07:00
Peter Taoussanis 49b4f35514 README housekeeping 2015-05-26 21:52:09 +07:00
Peter Taoussanis 745d10d4ce js console appender: allow raw arg switch 2015-05-26 18:05:48 +07:00
Peter Taoussanis 7c969ca0e6 Final hk? 2015-05-26 17:51:47 +07:00
Peter Taoussanis 6ab9c4ac59 Attempted auto workaround for CLJ-124 2015-05-26 14:28:17 +07:00
Peter Taoussanis 371fb24d3f Update README, etc. 2015-05-26 14:28:13 +07:00
Peter Taoussanis 502ff97d26 Add default ClojureScript console appender 2015-05-26 12:43:30 +07:00
Peter Taoussanis beec0c9fdd Housekeeping 2015-05-26 12:43:30 +07:00
Peter Taoussanis 3c824d31da Update 3rd-party appenders (rough) 2015-05-26 11:15:57 +07:00
Peter Taoussanis 014faa7bab Update official appenders 2015-05-26 02:40:07 +07:00
Peter Taoussanis 17c6986087 Finish up initial new .cljx ns
Wrote whole ns in one sitting; have likely missed some bugs, etc.
2015-05-26 02:40:07 +07:00
Peter Taoussanis f287de4cb2 Initial new .cljx ns (complete rewrite) 2015-05-25 22:16:23 +07:00
Peter Taoussanis d6a70873fc Group 3rd-party appenders 2015-05-25 19:53:28 +07:00
Peter Taoussanis 3853cd3e8f Remove vestigial utils ns 2015-05-25 19:49:08 +07:00
Peter Taoussanis 2dd0121352 *ABORTED*: old v4 refactor 2015-05-25 19:29:55 +07:00
Alexander Yakushev 9e79a6935b [#98] Update Android appender to 3.x API (@alexander-yakushev) 2015-04-13 16:44:08 +07:00
Peter Taoussanis f9ae244f55 Housekeeping for [#93] (f3347c4) 2015-04-13 16:44:08 +07:00
rossputin 614460790a [#93] Create spit appender path if it does not exist (@rossputin) 2015-04-13 16:44:08 +07:00
Peter Taoussanis 2527e1f425 Add encore version check 2015-02-16 13:01:06 +07:00
Peter Taoussanis 426b8774aa Misc hk 2015-02-16 12:53:55 +07:00
Trevor Hartman 1ac261c92c Fix bug in rolling appender where path was ignored
Reference: ptaoussanis/timbre#41
2015-01-09 12:40:32 -07:00
Peter Taoussanis c95e257e17 Housekeeping: remove duplicated code 2014-08-14 18:53:17 +07:00
Peter Taoussanis 8b275387c7 Housekeeping: HEAD^ 2014-08-14 18:48:01 +07:00
Mauro Lopes 6b6395db10 Make defnp support multi-arity functions (@maurolopes) 2014-08-14 18:47:44 +07:00
Peter Taoussanis ee49e44a46 Fix #77: compile-time rather than runtime profile namespaced ids 2014-08-14 18:34:55 +07:00
Peter Taoussanis c9b9b4a809 Fix #47: incorrectly formatted nanosecond profiling times 2014-08-14 18:34:54 +07:00
Peter Taoussanis e18ced6b2e #71: Add note re: possible future `delay` wrapping for `:message`+`:output` keys 2014-08-14 18:34:54 +07:00
Peter Taoussanis f430ed9f81 #72: document `defnp`'s lack of multi-arity support (@ribcakes) 2014-08-14 18:34:54 +07:00
Peter Taoussanis f75d707208 Housekeeping: HEAD^ 2014-08-14 18:34:51 +07:00
Angus Fletcher 5797696fbf Add zmq appender (@angusiguess) 2014-07-27 11:30:56 +07:00
Chris Truter 623342a2bb Update IRC appender to Timbre v3 style (@crisptrutski) 2014-07-27 11:30:51 +07:00
Peter Taoussanis f8f9430727 Fixup c3a9128 2014-05-06 14:42:43 +07:00
Peter Taoussanis c3a9128761 Merge branch 'master' of github.com:ptaoussanis/timbre into dev 2014-05-06 13:11:43 +07:00
James Warren 6af185f28a thread-configurable logging 2014-05-05 16:57:30 -07:00
Peter Taoussanis 160102c5d8 `get-hostname`: remove unnecessary promise, add max blocking time 2014-04-16 15:21:29 +07:00
Peter Taoussanis e92d78789c Profiling stats housekeeping 2014-04-03 17:06:52 +07:00
Peter Taoussanis 48a026b695 Revert "Experimental: improved profiling MAD accuracy over stat merges"
Unnecessarily complex - the naive approach is simpler + produces results
that are sufficiently accurate in most cases.

This reverts commit 6f8795fcb8dc1c2f2e50c4f74afa7f9e256b7ef8.
2014-04-03 17:06:52 +07:00
Peter Taoussanis 23e9566551 Experimental: improved profiling MAD accuracy over stat merges 2014-04-03 17:06:52 +07:00
Peter Taoussanis 54197c1dec Profiling: make larger call numbers easier to read 2014-04-03 17:06:52 +07:00
Peter Taoussanis c05e980e8a Experimental: occasionally gather profiling data to minimize memory overhead 2014-04-03 17:06:52 +07:00
Rohit Aggarwal 420f4190d6 Remove an eastwood warning by turning pre/post map into an empty map if it is nil for the defnp macro. 2014-04-01 14:30:37 +01:00
Peter Taoussanis 43b2f6e870 Fix #56: `defnp`/`p` head retention issue (kyptin) 2014-03-16 18:54:53 +07:00
Peter Taoussanis 76d7ac8b28 Fix: `profiling/p*` was defined incorrectly (kyptin) 2014-03-15 21:41:41 +07:00
Peter Taoussanis c95a3253c7 Minor code formatting 2014-03-13 14:49:44 +07:00
Ian Truslove 6b93bef22b Rotor appender: all logs being rotated after max count reached 2014-03-13 14:47:33 +07:00
Peter Taoussanis f0b1de333e Include `p`, `p*` in `refer-timbre` imports 2014-03-13 01:25:44 +07:00
Peter Taoussanis 85a30fb918 Add `profiling/p*` macro 2014-03-13 01:23:20 +07:00
Peter Taoussanis c58290f864 Fix: profiling id namespacing 2014-03-11 14:42:21 +07:00
Peter Taoussanis 2b8a9d6c80 Revert "Mod Carmine appender to work correctly with Carmine v3+"
This reverts commit 338ac0497d.

On second thought, better addressed upstream by Carmine v3
2014-03-09 18:00:20 +07:00
Peter Taoussanis 338ac0497d Mod Carmine appender to work correctly with Carmine v3+ 2014-03-09 17:47:34 +07:00
Peter Taoussanis f8ab8abc42 Move `make-timestamp-fn` to `encore` lib 2014-03-09 17:46:27 +07:00
Peter Taoussanis 56b143577c Remove faulty+unused tools.macro ns import 2014-02-26 13:37:34 +07:00
Peter Taoussanis 6117b3b18d Add pspy times 2014-02-26 12:59:14 +07:00
Peter Taoussanis f879882e8f Profiling housekeeping, add `pspy*` fn 2014-02-23 20:13:47 +07:00
Peter Taoussanis 7355cd6424 NB migrate utils stuff to `encore` lib 2014-02-23 20:13:47 +07:00
Peter Taoussanis 859cfde81f Carmine appender hk: `conn`->`conn-opts` for consistency wih Carmine v3 2014-02-23 20:13:46 +07:00
ken restivo 581ab21687 Use system-configured formatters, output, stacktrace printers, etc. 2014-02-22 10:25:40 -08:00
ken restivo 603584e13c Clean up unnecessary destructuring. 2014-02-22 09:24:07 -08:00
Peter Taoussanis 87af0d40cc Make Carmine appender resistant to unexpected thaw errors 2014-02-09 19:45:57 +07:00
Peter Taoussanis a995a7baf0 Fix regression: spit appender should print newlines (ristkari, ag0rex) 2014-01-30 15:50:13 +07:00