Skip to content

Commit 91dc6f9

Browse files
committed
Clarify logger name
1 parent beeb40a commit 91dc6f9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,25 @@ compile "org.clojure:tools.logging:1.1.0"
3737
Logging occurs with the `log` macro, or the level-specific convenience macros
3838
(e.g., `debug`, `debugf`). Only when the specified logging level is enabled will
3939
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.
4242

4343
### Namespacing of log entries
4444

4545
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.
4848

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.
5252

5353
### Redirecting output to logs
5454

5555
You can redirect all java writes of `System.out` and `System.err` to the log
5656
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*`.
5959

6060
## Configuration
6161

0 commit comments

Comments
 (0)