Skip to content

Commit 1ee0b48

Browse files
author
Stefan Fleck
committed
Merge branch 'master' of https://github.com/s-fleck/lgr
2 parents 1f93241 + 4308a05 commit 1ee0b48

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

R/basic_config.R

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#' Basic Setup for the Logging System
22
#'
3-
#' A quick and easy way to configure the root logger.
3+
#' A quick and easy way to configure the root logger. This is less powerful
4+
#' then using [`lgr$config()` or `lgr$set_*()`][Logger], but reduces the
5+
#' most common configrations to a single line of code.
46
#'
57
#' @param file `character` scalar: If not `NULL` a [AppenderFile] will be
68
#' created that logs to this file. If the filename ends in `.jsonl`, the

R/logger_tree.R

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#' Logger Tree
22
#'
3-
#' Displays an tree structure of all registered Loggers.
3+
#' Displays a tree structure of all registered Loggers.
44
#'
55
#' @section Symbology:
66
#'
77
#' * unconfigured Loggers are displayed in gray (if your terminal supports
88
#' colors and you have the package \pkg{crayon} installed).
99
#' * If a logger's `threshold` is set, it is displayed in square brackets next
10-
#' to the logger name. If the threshold is not set, it inherits the threshold
11-
#' of the next logger up the logger tree.
10+
#' to its name (reminder: if the threshold is not set, it is inherited from
11+
#' next logger up the logger tree).
1212
#' * If a logger's `propagate` field is set to `FALSE` an red hash (`#`) sign
1313
#' is displayed in front of the logger name, to imply that it does not pass
1414
#' LogEvents up the tree.
@@ -87,9 +87,7 @@ logger_tree <- function(
8787
}
8888
}
8989

90-
9190
assert(all_are_distinct(res$parent))
92-
9391
structure(
9492
res,
9593
class = union("logger_tree", class(res))

0 commit comments

Comments
 (0)