2014-08-15 09:19:42 +00:00
> This project uses [Break Versioning](https://github.com/ptaoussanis/encore/blob/master/BREAK-VERSIONING.md) as of **Aug 16, 2014**.
2016-02-26 08:26:23 +00:00
## v4.3.0 / 2016 Feb 26
2016-01-26 13:42:25 +00:00
2016-02-26 08:26:23 +00:00
> This is a major, non-breaking feature release
2016-01-23 06:44:18 +00:00
* **New**: added 3rd-party gelf appender [#147 @davewo ]
2016-01-26 13:42:25 +00:00
* **New**: new `:?hash-arg` data key for use by custom data hash fns
* **New**: low-level `log!` macro for use in tooling (slf4j-timbre, etc.)
2016-02-26 08:26:23 +00:00
* **New**: allow compile-time log level to be set with system property [#151 @DomKM ]
* **New**: ClojureScript console logger docstring now incl. instructions for Chrome Blackboxing [#132 @danskarda ]
* **New**: include line numbers in default output for non-nested macros [#132]
2016-01-26 13:42:25 +00:00
* **Impln**: appenders no longer need to worry about using `force` instead of `@` /`deref`
2016-01-23 06:44:18 +00:00
2016-01-26 13:42:25 +00:00
```clojure
[com.taoensso/timbre "4.3.0"]
```
2016-01-23 06:44:18 +00:00
2016-01-14 04:20:42 +00:00
## v4.2.1 / 2016 Jan 14
> This is a non-breaking hotfix release
* **Fix**: compile issue with Clojure 1.6 [#146 @nicferrier ]
```clojure
[com.taoensso/timbre "4.2.1"]
```
2015-12-13 03:31:56 +00:00
## v4.2.0 / 2015 Dec 27
> This is a non-breaking feature release
* **Change**: switch default timestamp timezone from JVM default to UTC [#135]
* **Change**: switch default timestamp pattern from `yy-MMM-dd` -> `yy-MM-dd pattern` (easier to sort) [#135]
* **New**: `swap-config!` now supports & args [#137 @rsslldnphy ]
* **New**: rotor appender now creates necessary paths [#140 @dsapala ]
* **New**: faster (transducer-based) string joins with Clojure 1.7+ [#133]
* **New**: records now get a human-readable string representation [#133]
* **Fix**: application slowdown due to agents shutdown [#141 @ryfow ]
```clojure
[com.taoensso/timbre "4.2.0"]
```
2016-01-14 04:20:42 +00:00
2015-12-27 02:51:42 +00:00
## v4.1.5 / 2015 Dec 27
2015-12-13 03:31:56 +00:00
> This is a non-breaking hotfix release
* Assist fix of https://github.com/fzakaria/slf4j-timbre/issues/8
2015-12-27 02:51:42 +00:00
```clojure
[com.taoensso/timbre "4.1.5"]
```
2015-09-30 10:01:50 +00:00
## v4.1.4 / 2015 Sep 30
> This is a non-breaking hotfix release
* Fix broken support for Clojure 1.5
```clojure
[com.taoensso/timbre "4.1.4"]
```
2015-09-26 05:24:40 +00:00
## v4.1.2 / 2015 Sep 26
> This is a non-breaking hotfix release
* Bring back deprecated `logp` macro from Timbre v3.x to ease back-compatibility [#67]
```clojure
[com.taoensso/timbre "4.1.2"]
```
2015-08-16 04:22:54 +00:00
## v4.1.1 / 2015 Aug 16
> This is a non-breaking hotfix release
* **Fix**: shutdown-agents shutdown hook can interfere with other important hooks [#127 @hadronzoo ]
```clojure
[com.taoensso/timbre "4.1.1"]
```
2015-07-29 06:58:00 +00:00
## v4.1.0 / 2015 Aug 7
> This is a non-breaking feature release
* **DEPRECATED**: `*context*` val is now located under a `:context` key in appender's data map [#116 @mikesperber ]
* **New**: Added `profiling/fnp` macro
```clojure
[com.taoensso/timbre "4.1.0"]
```
2015-06-26 05:47:01 +00:00
## v4.0.2 / 2015 June 26
> This is a minor, non-breaking bug fix release
* **Fix**: broken v4 3rd-party appender: rotor [#105 #107 @yogthos ]
* **Fix**: broken tools.logging support [#110 @Guthur ]
```clojure
[com.taoensso/timbre "4.0.2"]
```
2015-06-13 12:27:31 +00:00
## v4.0.1 / 2015 June 13
> This is a minor, non-breaking feature release
* **New**: add `get-env` , `log-env` macros [#103 @RickMoynihan ]
```clojure
[com.taoensso/timbre "4.0.1"]
```
2015-06-10 06:37:27 +00:00
## v4.0.0 / 2015 June 10
2015-05-26 07:28:07 +00:00
2015-05-26 11:31:09 +00:00
> This is a **MAJOR** update. Your custom appenders **WILL BREAK**. Your configuration **MIGHT BREAK**. Your call sites should be fine. I've updated all bundled appenders, but **haven't tested** any 3rd-party appenders.
2015-05-26 07:28:07 +00:00
* **New**: full **ClojureScript** support, including a default js/console appender [#51]
* **New**: support for compile-time ns filtering + elision (both Clj+Cljs)
* **New**: support for MDC-like contexts [#42]
* **New**: default :println appender has picked up a :stream opt [#49]
* **New**: create necessary spit appender paths [#93]
2015-05-26 11:31:09 +00:00
* **New**: full-power fn-level `log1-fn` util [#99]
2015-05-28 06:06:13 +00:00
* **New**: added a reference appender example [here ](https://github.com/ptaoussanis/timbre/blob/master/src/taoensso/timbre/appenders/core.cljx )
2015-05-26 07:28:07 +00:00
* **Implementation**: modernized + simplified codebase
* **Implementation**: significant performance improvements across the board
* **Implementation**: use delays to avoid unnecessarily producing unused arg msgs [#71]
* **Fix**: auto shutdown agents to prevent slow app shutdown [#61]
```clojure
2015-06-10 06:37:27 +00:00
[com.taoensso/timbre "4.0.0"]
2015-05-26 07:28:07 +00:00
```
### Migration checklist
* Removed vars: `timbre/config` , `timbre/level-atom` , `default-fmt-output-fn`
* The fn signature for `set-config!` has changed: `[ks val]` -> `[config]`
* Middleware now apply left->right, not right->left
2015-05-26 11:31:09 +00:00
* Renamed a default appender: `:standard-out` -> `:println`
2015-05-26 07:28:07 +00:00
* Renamed config opts: `:timestamp-pattern` , `:timestamp-locale` -> `:timestamp-opts {:pattern _ :locale _ :timezone _}`
2015-05-26 15:40:56 +00:00
* Renamed config opts: `:whitelist` -> `:ns-whitelist` , `:blacklist` -> `:ns-blacklist`
2015-05-26 07:28:07 +00:00
* Appender :rate-limit format has changed: `[ncalls ms]` -> `[[ncalls ms] <...>]`
* Renamed appender args: `:ns` ->`:?ns-str`, `:file` ->`:?file`, `:line` ->`:?line`
* Appender args now wrapped with delays: `:throwable` ->`:?err_`, `:message` ->`:msg_`, `:timestamp` ->`:timestamp_`, `:hostname` ->`:hostname_`, `:args` ->`:vargs_`
* Appender args removed: `:output` , `:ap-config`
2015-05-28 06:06:13 +00:00
* Appender args added: `:output-fn (fn [data]) -> string`
2015-05-26 07:28:07 +00:00
* `stacktrace` util fn signature changed: `[throwable & [sep fonts]` -> `[err & [opts]]`
2015-05-28 06:06:13 +00:00
* All bundled 3rd-party appenders have moved to a new `3rd-party` ns.
* Bundled 3rd-party appender constructor signatures _may_ have changed, please double check.
2015-05-26 07:28:07 +00:00
Apologies for the hassle in migrating. The changes made here all bring serious benefits (performance, simplicity, future extensibility, cross-platform support) and I'm confident that v4's the last time I'll need to touch the core design. Future work will be focused on polish, stability, and better+more bundled appenders.
/ Peter Taoussanis
2015-02-16 05:59:23 +00:00
## v3.4.0 / 2015 Feb 16
> This should be a **non-breaking** release that only bumps some old dependencies.
2014-09-07 15:11:32 +00:00
## v3.3.1 / 2014 Sep 7
* **FIX** https://github.com/ptaoussanis/timbre/issues/79.
2014-08-14 11:47:33 +00:00
## v3.3.0 / 2014 May 8
2014-08-15 09:19:42 +00:00
* **CHANGE**: Update IRC appender to Timbre v3 style (@crisptrutski).
* **FIX** [#47]: correctly format nanosecond profiling times.
* **FIX** [#77]: profile ids now use correct (compile-time rather than runtime) ns prefix.
* **NEW**: Add zmq appender (@angusiguess).
* **NEW** [#75]: Make defnp support multi-arity functions (@maurolopes)
2014-05-07 05:48:27 +00:00
## v3.2.1 / 2014 May 7
* **FIX**: missing tools.reader upstream dependency (@ducky427).
2014-05-06 07:46:09 +00:00
## v3.2.0 / 2014 May 6
2014-04-01 14:16:21 +00:00
2014-08-14 11:47:33 +00:00
* **FIX** [#60]: `defnp` no longer generates an Eastwood warning (@ducky427).
2014-05-06 06:17:52 +00:00
* **CHANGE**: Improved profiling memory efficiency (max memory use, was previously unbounded).
* **CHANGE**: Profiling: make larger call numbers easier to read.
* [#63]: **NEW** : Add support for thread-local configuration (@jameswarren).
2014-04-01 14:16:21 +00:00
2014-03-16 11:55:36 +00:00
## v3.1.6 / 2014 Mar 16
2014-03-16 11:53:26 +00:00
2014-08-14 11:47:33 +00:00
* **FIX** [#56]: `defnp` /`p` head retention issue (@kyptin).
2014-03-16 11:53:26 +00:00
2014-03-15 14:39:05 +00:00
## v3.1.5 / 2014 Mar 15
2014-03-15 14:38:23 +00:00
2014-08-14 11:47:33 +00:00
* **FIX**: `profiling/p*` was defined incorrectly (@kyptin).
2014-03-15 14:38:23 +00:00
2014-03-12 18:16:46 +00:00
## v3.1.4 / 2014 Mar 13
2014-03-12 18:22:56 +00:00
2014-08-14 11:47:33 +00:00
* **NEW**: Add `profiling/p*` macro.
* **CHANGE**: Include `p` , `p*` in `refer-timbre` imports.
* **FIX**: rotor appender not rotating (@iantruslove, @kurtharriger ).
2014-03-12 18:22:56 +00:00
2014-03-11 07:41:02 +00:00
## v3.1.3 / 2014 Mar 11
2014-02-26 09:46:45 +00:00
2014-03-11 07:41:02 +00:00
* FIX: profiling id namespacing.
## v3.1.1 / 2014 Feb 26
2014-03-09 11:00:20 +00:00
2014-03-11 07:41:02 +00:00
* FIX: project.clj to prevent unnecessary downstream deps.
2014-02-26 09:46:45 +00:00
2014-02-23 13:11:37 +00:00
## v3.1.0 / 2014 Feb 23
### New
* #47 Added `taoensso.timbre.profiling/pspy*` fn.
2014-02-22 18:02:52 +00:00
### Changes
2014-02-23 13:11:37 +00:00
* Made Carmine appender resistant to unexpected log entry thaw errors.
* Moved most utils to external `encore` dependency.
2014-02-09 12:02:03 +00:00
2014-02-22 18:02:52 +00:00
### Fixes
2014-02-23 13:11:37 +00:00
* #50 Fixed rotor appender so that it respects :fmt-output-opts (kenrestivo).
2014-02-22 18:02:52 +00:00
2014-02-09 12:02:03 +00:00
2014-02-22 18:02:52 +00:00
## v3.0.0 / 2014 Jan 30
2013-11-29 06:39:09 +00:00
2014-02-22 18:02:52 +00:00
> Major update, non-breaking though users with custom appenders are encouraged to view the _Changes_ section below. This version polishes up the codebase and general design. Tightened up a few aspects of how appenders and appender middleware work. Added a serializing Carmine appender (I use something similar in prod most of the time). Also finally added facilities for ad hoc (non-atom) logging configuration.
>
> Overall quite happy with the state of Timbre as of this release. No major anticipated improvements/changes from here (modulo bugs).
2013-11-29 06:39:09 +00:00
2014-02-22 18:02:52 +00:00
### New
2013-11-29 06:39:09 +00:00
* Android appender, courtesy of AdamClements.
2014-01-02 08:38:58 +00:00
* Rolling appender, courtesy of megayu.
2013-12-01 09:49:31 +00:00
* Powerful, high-performance Carmine (Redis) appender: query-able, rotating serialized log entries by log level. See README or appender's docstring for details. (Recommended!)
2013-11-29 06:39:09 +00:00
* Appender rate limits now specified in a more flexible format: `[ncalls window-msecs]` , e.g. `[1 2000]` for 1 write / 2000 msecs.
* Appender rate limits now also apply (at 1/4 ncalls) to any _particular_ logging arguments in the same time window. This helps prevent a particular logging call from flooding the limiter and preventing other calls from getting through.
* `sometimes` macro that executes body with given probability. Useful for sampled logging (e.g. email a report for 0.01% of user logins in production).
* `log` and `logf` macros now take an optional logging config map as their first argument: `(log :info "hello") => use @timbre/config` , `(log <config> :info "hello") => use <config>` .
* Appenders can now specify an optional `:fmt-output-opts` that'll get passed to `fmt-output-fn` for any special formatting requirements they may have (e.g. the Postal email appender provides an arg to suppress ANSI colors in stacktrace output).
### Changes
2014-02-22 18:02:52 +00:00
* **EXPERIMENTAL**: stacktraces now formatted with `io.aviso/pretty` rather than clj-stacktrace. Feedback on this (esp. coloring) welcome!
* **DEPRECATED**: `red` , `green` , `blue` -> use `color-str` instead.
* **DEPRECATED**: config `prefix-fn` has been replaced by the more flexible `fmt-output-fn` . Change is backwards compatible.
* **REMOVED**: 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.
2013-11-29 06:39:09 +00:00
* Update `refer-timbre` (add profiling, logf variations, etc.).
2014-02-22 18:02:52 +00:00
* **DEPRECATED**: atom logging level is now located in `level-atom` rather than `config` . Old in-config levels will be respected (i.e. change is backwards compatible).
* **DEPRECATED**: appender rate limits are now specified as `:rate-limit [ncalls window-msecs]` rather than `:limit-per-msecs ncalls` . Change is backwards compatible.
2013-11-29 06:39:09 +00:00
* Built-in appenders have been simplified using the new `default-output` appender arg.
* Postal appender now generates a more useful subject in most cases.
### Fixes
2014-02-22 18:02:52 +00:00
* #38 Broken namespace filter (mlb-).
* 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).
* `(logf <level> "hello %s")` was throwing due to lack of formatting args.
2013-11-29 06:39:09 +00:00
2013-11-06 13:46:57 +00:00
## v2.6.3 → v2.7.1
2013-11-06 08:19:38 +00:00
* Core: `getHostName` no longer runs on the main thread for better Android compatibility (AdamClements).
* Profiling: added `defnp` macro.
* Profiling: fix compile-time name creation: now runtime (aperiodic).
* Appenders: added rotating file appender (mopemope).
## v2.5.0 → v2.6.3
2013-08-20 16:09:30 +00:00
* Perf: add support for a compile-time logging level environment variable (`TIMBRE_LOG_LEVEL`). See `timbre/compile-time-level` docstring for details.
2013-09-25 09:01:26 +00:00
* Fix: `use-timbre` , `str-println` bugs.
2013-11-06 08:19:38 +00:00
* Fix: Null Pointer Exception in clj-stacktrace (bitemyapp).
2013-08-20 16:09:30 +00:00
2013-08-07 05:46:04 +00:00
## v2.4.1 → v2.5.0
* Added `:file` and `:line` appender args.
* Fixed `make-timestamp-fn` thread safety.
2013-07-22 15:36:28 +00:00
## v2.3.4 → v2.4.1
2013-07-22 10:53:36 +00:00
* Added `refer-timbre` for conveniently `require` ing standard timbre vars.
2013-07-22 15:36:28 +00:00
* Postal appender now uses throwable as subject when no other args given.
* `log-errors` , `log-and-rethrow-errors` now catch Throwable instead of Exception.
2013-07-22 10:53:36 +00:00
## v2.2.0 → v2.3.4
2013-07-10 06:42:00 +00:00
* Added `with-log-level` for thread-local logging levels: `(with-level :trace (trace "This will log!"))` . Esp. useful for developing & unit tests, etc.
2013-07-09 06:29:51 +00:00
## v2.1.2 → v2.2.0
* Add socket, MongoDB appenders (thanks to emlyn).
2013-06-27 12:08:45 +00:00
## v2.0.0 → v2.1.2
* Added appenders: socket, IRC, MongoDB (CongoMongo). See [README ](https://github.com/ptaoussanis/timbre#built-in-appenders ) for details.
* Add `ex-data` output to `stacktrace` fn.
* Fixed a number of small bugs (mostly regressions from 1.x).
## v1.6.0 → v2.0.0
* Refactor for integration with tools.logging.
* **BREAKING**: Drop Clojure 1.3 support.
* **DEPRECATED**: `:max-messages-per-msecs` appender arg -> `:limit-per-msecs` .
* **BREAKING**: `:more` appender arg has been dropped. `:message` arg 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.
* **BREAKING**: Stacktraces are no longer automatically generated at the `log` -macro level. Stacktraces are now left as an appender implementation detail. A `:throwable` appender argument has been added along with a `stacktrace` fn.