10 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
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
19f7b898e3 Added Mean Absolute Deviation (MAD) times to profiling output. Misc housekeeping. 2012-07-05 16:39:44 +07:00
Peter Taoussanis
0cb368a0d9 Updated README. Fixed profiler typos. Some other housekeeping. 2012-07-03 19:46:05 +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