Skip to content

Commit a93fe97

Browse files
committed
add about current_logger
1 parent af567a8 commit a93fe97

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,17 @@ To make a logger the global logger, use
6969
global_logger(logger)
7070
```
7171

72-
to get the current global logger, use
72+
To get the current logger (which can vary per task) use
73+
```julia
74+
logger = current_logger()
75+
```
76+
77+
To get the current global logger (which does not vary per task), use
7378
```julia
7479
logger = global_logger()
7580
```
7681

82+
7783
# Loggers introduced by this package:
7884
This package introduces 6 new loggers.
7985
The `TeeLogger`, the `TransformerLogger`, 3 types of filtered logger, and the `FileLogger`.

0 commit comments

Comments
 (0)