Commit Graph

562 Commits

Author SHA1 Message Date
Peter Taoussanis f58442f355 BREAKING: Clean up config structure. Add prefix-fn option.
Changes to config structure:
* [:shared-appender-config :timestamp-pattern] -> :timestamp-pattern
* [:shared-appender-config :locale]            -> :timestamp-locale
* Add :prefix-fn

Motivation: timestamp options aren't actually config intended for
appenders. Having them in :shared-appender-config was unnecessarily
confusing.

The addition of :prefix-fn allows full control of prefix strings in a
way that carries over automatically to all appenders. Previously,
adjusting prefix text required modifying appender fns.

Changes to default appenders:
* Drop [:appenders :standard-out]
* [:appenders :standard-out-or-err] -> [:appenders :standard-out]

Motivation: the :standard-out-or-err appender was already the default
anyway, and the presence of the :standard-out appender was just
confusing.
2012-07-26 22:39:21 +07:00
Peter Taoussanis 83c8ff19f7 Add utils ns. Add hostname to default prefix fn. 2012-07-26 15:18:49 +07:00
Peter Taoussanis ba78e67902 CONFIG CHANGE: Bump aggressiveness of Postal appender's default rate-limiter. 2012-07-23 21:10:01 +07:00
Peter Taoussanis 0591e85418 Clean up testing config. 2012-07-23 20:48:49 +07:00
Peter Taoussanis bfa33a7e8e Merge branch 'dev': v0.7.0. 2012-07-13 18:12:44 +07:00
Peter Taoussanis c1c34be596 Added 'breaking changes' to README. 2012-07-13 18:08:25 +07:00
Peter Taoussanis cca1141c7f BREAKING: Moved Postal appender to own ns and no longer automatically include Postal as dependency.
All future appenders that depend on an external library will follow this pattern, allowing the
flexibility to add more diverse appenders without the worry of bloating Timbre core or Timbre's
dependencies.

See updated README example for how to include standard email appender.
2012-07-13 17:32:23 +07:00
Peter Taoussanis 6807e2b6bd `str-println` now flushes *out* (Marek Srank). 2012-07-13 16:22:54 +07:00
Peter Taoussanis 068d9bf248 Use `defonce` instead of `def` for config. 2012-07-12 16:33:21 +07:00
Peter Taoussanis f454ac9afb Clarified example Postal config. 2012-07-11 13:28:23 +07:00
Peter Taoussanis 7844eea6c9 README housekeeping. 2012-07-07 20:19:35 +07:00
Peter Taoussanis 8878fb82f8 New tests ns structure. 2012-07-07 20:19:34 +07:00
Peter Taoussanis df0d26efde README typo (spotted by Steve Miner). 2012-07-07 20:19:10 +07:00
Peter Taoussanis c1d9442ec2 Merge branch 'dev': v0.6.1. 2012-07-05 16:49:54 +07:00
Peter Taoussanis d429ccc646 MAD test. 2012-07-05 16:48:14 +07:00
Peter Taoussanis 3daa33c02c New tests ns structure. 2012-07-05 16:39:49 +07:00
Peter Taoussanis 404d2ab886 Added note about changed repo+ns. 2012-07-05 16:39:48 +07:00
Peter Taoussanis 19f7b898e3 Added Mean Absolute Deviation (MAD) times to profiling output. Misc housekeeping. 2012-07-05 16:39:44 +07:00
Peter Taoussanis 2aa9d4d83f Merge branch 'dev': v0.6.0. 2012-07-03 21:22:44 +07:00
Peter Taoussanis 123f3c51d9 Added unaccounted-for timer. Fixed bug with :mean overflow. 2012-07-03 21:16:07 +07:00
Peter Taoussanis 0cb368a0d9 Updated README. Fixed profiler typos. Some other housekeeping. 2012-07-03 19:46:05 +07:00
Peter Taoussanis bf7c9ff0f6 Cleaned up profiling table display. 2012-07-03 16:54:15 +07:00
Peter Taoussanis aa531901ea Cleaned up test files. 2012-07-03 16:32:44 +07:00
Peter Taoussanis aaca1aac5d Added timbre.profiling as merge from abandoned Touchstone library. 2012-07-03 16:32:08 +07:00
Peter Taoussanis d9a68f1e58 README tweaks. 2012-07-03 16:30:50 +07:00
Peter Taoussanis 0177e7236b Added ns filtering, `logging-enabled`. Misc housekeeping. 2012-07-03 16:29:11 +07:00
Peter Taoussanis cfc2a60c8e BREAKING: New ns structure. 2012-07-03 16:27:20 +07:00
Peter Taoussanis a1bec9d6c3 Allow Travis to test dev branches. 2012-07-03 16:24:29 +07:00
Peter Taoussanis 7ce65ed924 Merge branch 'dev' 2012-07-01 18:12:32 +07:00
Peter Taoussanis 7dc339aca8 0.5.2
* Added check for valid logging level for 'set-level!' and for logging fns.
* Added ':report' level above fatal.
* Fixed arglists for 'log' macro.
* A few other bits of house-keeping.

Signed-off-by: Peter Taoussanis <ptaoussanis@gmail.com>
2012-07-01 18:08:45 +07:00
Peter Taoussanis 3b68744322 Pushed v0.5.1.
* Added note to README about new Clojars group.

Signed-off-by: Peter Taoussanis <ptaoussanis@gmail.com>
2012-06-29 14:13:28 +07:00
Peter Taoussanis f7c59cd377 Removed TODO.org. Please contact me if you'd like to contribute\! 2012-06-28 18:17:12 +07:00
Peter Taoussanis cc58ac0025 Moved to new Maven group artifact. 2012-06-27 19:08:07 +07:00
Peter Taoussanis 4ddbcf2016 Bumped Postal dependency to 1.8.0. 2012-06-27 17:49:05 +07:00
Peter Taoussanis fe65311a0a Tweaked CLJWS section of README. 2012-06-20 17:53:06 +07:00
Peter Taoussanis 4437a7af1e Added TODO. 2012-06-17 00:32:40 +07:00
Peter Taoussanis 5a2b013db0 README tweak. 2012-06-16 22:37:51 +07:00
Peter Taoussanis daeb4d4a9b Added ClojureWerkz section to README. 2012-06-16 13:53:38 +07:00
Peter Taoussanis 6517db3a83 Faster, atomic string printer.
* Fixes rare issue with print interleaving.

Signed-off-by: Peter Taoussanis <p.taoussanis@gmail.com>
2012-06-15 18:06:18 +07:00
Peter Taoussanis c011e74e23 Added Travis status image to README. 2012-06-12 22:09:31 +07:00
Peter Taoussanis e8c799e04c Added skeleton testing ns. Added .travis.yml. 2012-06-12 22:08:31 +07:00
Peter Taoussanis 5f1862a334 A few minor superficial tweaks.
* Updated .gitignore
* Added copyright info to README.
* Added Clojure 1.3 dependency to project.clj.
* Cleaned up some arg names in core.clj.

Signed-off-by: Peter Taoussanis <p.taoussanis@gmail.com>
2012-06-12 22:02:24 +07:00
Peter Taoussanis f1319b57e7 Allow nil :min-level for appenders. 2012-06-06 00:46:10 +07:00
Peter Taoussanis 2c16d6783c Simplified appender timestamp args. Improved performance.
* Removed 'timestamp-fn' from appender args and replaced with ready-formatted 'timestamp' for simpler appender writing.
* Fixed appender wrapping function bug that was unnecessarily recomputing shared args and timestamp function at runtime.

Signed-off-by: Peter Taoussanis <p.taoussanis@gmail.com>
2012-05-31 00:05:36 +07:00
Peter Taoussanis fe7e69bf92 Minor breaking: renamed 2 "instant" keys
* instant-pattern -> timestamp-pattern
* instant-formatter -> timestamp-fn

Also:
* Updated README.
* A few formatting tweaks.

Signed-off-by: Peter Taoussanis <p.taoussanis@gmail.com>
2012-05-30 20:07:34 +07:00
Peter Taoussanis dde1b89b03 Added time-format and locale shared-config options.
* Also updated README.

Signed-off-by: Peter Taoussanis <p.taoussanis@gmail.com>
2012-05-30 16:15:15 +07:00
Peter Taoussanis 5fbbe9bfb5 Improved appender-fn example in README.
Signed-off-by: Peter Taoussanis <p.taoussanis@gmail.com>
2012-05-30 13:47:53 +07:00
Peter Taoussanis da60e78bbe Now less choosy about when to recache appenders.
* E.g. there was a problem when changing shared-appender config. The new approach is more robust.

Signed-off-by: Peter Taoussanis <p.taoussanis@gmail.com>
2012-05-30 13:35:40 +07:00
Peter Taoussanis 26d9f6fb14 Superficial email address tweak. 2012-05-30 12:52:09 +07:00
Peter Taoussanis 8c449134bb Added clj-stacktrace to dependencies.
Signed-off-by: Peter Taoussanis <p.taoussanis@gmail.com>
2012-05-29 19:46:48 +07:00