Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make `log` an alias for `logp`

  • Loading branch information...
commit 7961a8d807cc26a7a5e5393c8f8d45a3507bcc20 1 parent 95109b7
Peter Taoussanis authored
Showing with 6 additions and 11 deletions.
  1. +2 −2 README.md
  2. +1 −1  project.clj
  3. +3 −8 src/taoensso/timbre.clj
4 README.md
View
@@ -1,7 +1,7 @@
**[API docs](http://ptaoussanis.github.io/timbre/)** | **[CHANGELOG](https://github.com/ptaoussanis/timbre/blob/master/CHANGELOG.md)** | [contact & contributing](#contact--contributing) | [other Clojure libs](https://www.taoensso.com/clojure-libraries) | [Twitter](https://twitter.com/#!/ptaoussanis) | current [semantic](http://semver.org/) version:
```clojure
-[com.taoensso/timbre "2.3.1"] ; See CHANGELOG for breaking changes since 1.x
+[com.taoensso/timbre "2.3.2"] ; See CHANGELOG for breaking changes since 1.x
```
# Timbre, a (sane) Clojure logging & profiling library
@@ -26,7 +26,7 @@ Logging with Java can be maddeningly, unnecessarily hard. Particularly if all yo
Add the necessary dependency to your [Leiningen](http://leiningen.org/) `project.clj` and `require` the library in your ns:
```clojure
-[com.taoensso/timbre "2.3.1"] ; project.clj
+[com.taoensso/timbre "2.3.2"] ; project.clj
(ns my-app (:require [taoensso.timbre :as timbre
:refer (trace debug info warn error fatal spy with-log-level)])) ; ns
```
2  project.clj
View
@@ -1,4 +1,4 @@
-(defproject com.taoensso/timbre "2.3.1"
+(defproject com.taoensso/timbre "2.3.2"
:description "Clojure logging & profiling library"
:url "https://github.com/ptaoussanis/timbre"
:license {:name "Eclipse Public License"
11 src/taoensso/timbre.clj
View
@@ -346,19 +346,14 @@
(defmacro log
"When logging is enabled, actually logs given arguments with level-relevant
- appender-fns."
+ appender-fns using print-style :message."
{:arglists '([level & args] [level throwable & args])}
[level & sigs]
`(when (logging-enabled? ~level)
(log* {} ~level ~sigs nil)))
-(defmacro logp
- "When logging is enabled, actually logs given arguments with level-relevant
- appender-fns using print-style :message."
- {:arglists '([level & message] [level throwable & message])}
- [level & sigs]
- `(when (logging-enabled? ~level)
- (log* {} ~level ~sigs print-str)))
+(defmacro logp {:arglists '([level & message] [level throwable & message])}
+ [& sigs] `(log ~@sigs)) ; Alias
(defmacro logf
"When logging is enabled, actually logs given arguments with level-relevant
Please sign in to comment.
Something went wrong with that request. Please try again.