@@ -37,25 +37,25 @@ compile "org.clojure:tools.logging:1.1.0"
37
37
Logging occurs with the ` log ` macro, or the level-specific convenience macros
38
38
(e.g., ` debug ` , ` debugf ` ). Only when the specified logging level is enabled will
39
39
the message arguments be evaluated and the underlying logging implementation be
40
- invoked. By default that invocation will occur via an agent when inside a running
41
- STM transaction.
40
+ invoked. By default, that invocation will occur via an agent when inside a
41
+ running STM transaction.
42
42
43
43
### Namespacing of log entries
44
44
45
45
Unless otherwise specified, the current namespace (as identified by ` *ns* ` ) will
46
- be used as the log-ns. This value can be emitted in the log entry, and used by most
47
- logging implementations when using namespace-specific logging levels .
46
+ be used as the "logger name" when interacting with logging implementations. Most
47
+ logging implementations allow for varying configuration by logger name .
48
48
49
- Note: You should configure your logging implementation to display the name that
50
- was passed to it. If it instead performs stack-inspection you'll see some ugly
51
- and unhelpful text in your logs.
49
+ Note: You should configure your logging implementation to display the logger
50
+ name that was passed to it. If it instead the logging implementation performs
51
+ stack-inspection you'll see some ugly and unhelpful text in your logs.
52
52
53
53
### Redirecting output to logs
54
54
55
55
You can redirect all java writes of ` System.out ` and ` System.err ` to the log
56
56
system by calling ` log-capture! ` . To bind ` *out* ` and ` *err* ` to the log system
57
- invoke ` with-logs ` . In both cases a log-ns value must be specified in order to
58
- namespace the output .
57
+ invoke ` with-logs ` . In both cases a logger name must be provided in lieu of
58
+ using ` *ns* ` .
59
59
60
60
## Configuration
61
61
0 commit comments