Skip to content

Commit bf79329

Browse files
committed
improve changelog
1 parent 0bcc9ee commit bf79329

1 file changed

Lines changed: 92 additions & 133 deletions

File tree

NEWS.md

Lines changed: 92 additions & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -1,244 +1,203 @@
11
# lgr 0.4.5.9000
22

3-
* `AppenderConsole` now accept a `connection` argument. If called from a
4-
`{knitr}` rendering process, log messages are now output to `stderr` instead
5-
of `stdout` by default, to avoid polluting markdown documents (#62, thx @gadenbuie).
6-
7-
* BREAKING: added `rawMsg` property to LogEvents to store message without
8-
string interpolation (e.g. that still contains the placeholders from
9-
`sprintf()` or `glue()`). rawMsg will be added by default to json
10-
log files (#60)
11-
12-
* Replace `NULL` values and empty characters in logging by the string `"<NULL>"`.
3+
- Added `rawMsg` property to LogEvents to store message without
4+
string interpolation (i.e. the original string that still contains
5+
the placeholders from either `sprintf()` or `glue()`) (#60)
6+
7+
- Updated `AppenderConsole` to accept a `connection` argument. If called from a
8+
`{knitr}` rendering process, log messages are now output to `stderr` instead
9+
of `stdout` by default. This avoids polluting markdown documents (#62, thx @gadenbuie).
10+
11+
- Replace `NULL` values and empty characters in logging by the string `"<NULL>"`.
1312
Before, `NULL` values would have resulted in empty log messages. (#51)
14-
15-
* Support transformers for `LoggerGlue` (see `?glue::glue`) (#51)
1613

17-
* Add support for `excluded_fields` to `Layout`, and exclude rawMsg by
18-
default from `LayotJson`
19-
20-
* updated README
14+
- Support transformers for `LoggerGlue` (see `?glue::glue`) (#51)
2115

16+
- Add support for `excluded_fields` to `Layout`, and exclude rawMsg by
17+
default from `LayoutJson`
2218

2319
# lgr 0.4.4
2420

25-
* `%k` and `%K` parameters in `format.LogEvent` now work as expected when using
21+
- `%k` and `%K` parameters in `format.LogEvent` now work as expected when using
2622
**crayon** terminal colours (#52).
27-
28-
* Fix default format string for `LayoutGlue` which was using `msg`
29-
instead of `{msg}` (#54, thx @mmuurr)
30-
31-
* Update docs to use the more common term "structured logging" instead of
32-
"custom fields" where appropriate
3323

34-
* `as_event_list.data.frame` now really returns a list of `LogEvents`
24+
- Fix default format string for `LayoutGlue` which was using `msg`
25+
instead of `{msg}` (#54, thx @mmuurr)
26+
27+
- Update docs to use the more common term "structured logging" instead of
28+
"custom fields" where appropriate
3529

36-
* added `as_LogEvent()` to coerce various event-like objects to `LogEvents`
30+
- `as_event_list.data.frame` now really returns a list of `LogEvents`
3731

38-
* rebuild docs for R 4.2.0
32+
- added `as_LogEvent()` to coerce various event-like objects to `LogEvents`
3933

34+
- rebuild docs for R 4.2.0
4035

4136
# lgr 0.4.3
4237

43-
* `logger_index()` returns a `data.frame` with metadata on all registered
38+
- `logger_index()` returns a `data.frame` with metadata on all registered
4439
loggers (#47) (thanks @Fuco1)
45-
46-
* export new `string_repr()` generic that is used to layout R objects for
40+
- export new `string_repr()` generic that is used to layout R objects for
4741
formatted log message output (#48, thanks @mmuurr)
48-
49-
* The `$log()` method of Logger and LoggerGlue now unpacks conditions (except
42+
- The `$log()` method of Logger and LoggerGlue now unpacks conditions (except
5043
if they are supplied as a named argument) (#45, thanks @mmuurr)
51-
52-
* Fix some timezone related tests for CRAN
53-
44+
- Fix some timezone related tests for CRAN
5445

5546
# lgr 0.4.2
5647

57-
* Deprecated the `create_file` argument of `AppenderFileRotating*`. This
48+
- Deprecated the `create_file` argument of `AppenderFileRotating*`. This
5849
is now hardcoded to `TRUE` (because `FALSE` doesn't really make sense here).
5950

60-
* `default_exception_handler()` now throws more informative warnings if an
51+
- `default_exception_handler()` now throws more informative warnings if an
6152
error is encountered during logging.
6253

63-
* drop tests for deprecated [future](https://cran.r-project.org/package=future)
54+
- drop tests for deprecated [future](https://cran.r-project.org/package=future)
6455
plans to ensure compatibility with upcoming versions of future (#43)
65-
66-
56+
6757
# lgr 0.4.1
6858

69-
* Moved more complex Appenders to package
70-
[lgrExtra](https://github.com/s-fleck/lgrExtra). This includes database
71-
Appenders, email and push notifications and AppenderDt (in-memory
59+
- Moved more complex Appenders to package
60+
[lgrExtra](https://github.com/s-fleck/lgrExtra). This includes database
61+
Appenders, email and push notifications and AppenderDt (in-memory
7262
`data.tables`).
73-
74-
* `AppenderFile$show()` can now filter log files formatted by LayoutFormat
63+
- `AppenderFile$show()` can now filter log files formatted by LayoutFormat
7564
by log level. Be aware that this just `greps` through the file and therefore
76-
will return false positives on lines where the log message contains strings
65+
will return false positives on lines where the log message contains strings
7766
that can be interpreted as log levels.
78-
79-
* `AppenderFile$show()` and `AppenderFile$data` now dispatches to
80-
`Layout$read()` and `Layout$parse()`. This makes it possible to tie
67+
- `AppenderFile$show()` and `AppenderFile$data` now dispatches to
68+
`Layout$read()` and `Layout$parse()`. This makes it possible to tie
8169
reading/parsing of log files to Layouts.
8270

83-
* Loggers gain a `list_log()` method. See https://github.com/s-fleck/joblog for
84-
an R package that leverages this feature to create custom log event types for
85-
tracking the status of cron jobs.
86-
87-
* Export more utility functions that are useful for creating custom Appenders;
71+
- Loggers gain a `list_log()` method. See https://github.com/s-fleck/joblog for
72+
an R package that leverages this feature to create custom log event types for
73+
tracking the status of cron jobs.
74+
- Export more utility functions that are useful for creating custom Appenders;
8875
such as `standardize_threshold()` and `event_list()`.
89-
90-
* AppenderBuffer now defaults to `flush_threshold = NULL`
76+
- AppenderBuffer now defaults to `flush_threshold = NULL`
9177
(never flush because of the log level of an event)
92-
93-
* `basic_config()` now works as documented for .jsonl files
78+
- `basic_config()` now works as documented for .jsonl files
9479

95-
* AppenderMemory gains a `$clear()` method that clears the buffer without
80+
- AppenderMemory gains a `$clear()` method that clears the buffer without
9681
sending the events to it's attached appenders
9782

98-
* LayoutJson gains a `timestamp_fmt` field that can be used for custom
83+
- LayoutJson gains a `timestamp_fmt` field that can be used for custom
9984
timestamp formats (#34)
100-
101-
* added `toString.LogEvent()` for compact representations of LogEvents
85+
- added `toString.LogEvent()` for compact representations of LogEvents
10286

103-
* lgr is now automatically tested for all major R version >= 3.2.0
87+
- lgr is now automatically tested for all major R version >= 3.2.0
10488

105-
* AppenderMemory/AppenderBuffer: `flush_threshold` is now independent of
89+
- AppenderMemory/AppenderBuffer: `flush_threshold` is now independent of
10690
`should_flush` function. `default_should_flush()` is no longer necessary
10791
and has been removed.
108-
109-
* Updated AppenderFileRotating and co for compatibility with
92+
- Updated AppenderFileRotating and co for compatibility with
11093
[rotor](https://github.com/s-fleck/rotor) 0.3.0
11194

112-
* Most errors now have appropriate subclasses
95+
- Most errors now have appropriate subclasses
11396

114-
* `Logger$log()` dispatches to all appenders - even if some throw an error -
97+
- `Logger$log()` dispatches to all appenders - even if some throw an error -
11598
instead of aborting after the first Appender that throws an error
116-
117-
* complete rewrite of the documentation to use the new roxygen2 features for
99+
- complete rewrite of the documentation to use the new roxygen2 features for
118100
R6 classes.
119101

120-
121102
# lgr 0.3.4
122103

123-
* Hotfix for compatibility with R < 3.6.0 (#32)
124-
104+
- Hotfix for compatibility with R < 3.6.0 (#32)
125105

126106
# lgr 0.3.3
127107

128-
* Fixed a performance regression when looking up the parent of a Logger. This
129-
notably affected the performance of "do-nothing" logging (e.g. when a
108+
- Fixed a performance regression when looking up the parent of a Logger. This
109+
notably affected the performance of "do-nothing" logging (e.g. when a
130110
log message is discarded because it is below a loggers' threshold)
131-
132111

133112
# lgr 0.3.2
134113

135-
* Added AppenderSyslog for logging to syslog via
114+
- Added AppenderSyslog for logging to syslog via
136115
[rsyslog](https://github.com/atheriel/rsyslog) (thanks to atheriel)
137116

138-
139117
# lgr 0.3.1
140118

141-
* Added `logger_tree()` which provides an overview of all registered loggers
119+
- Added `logger_tree()` which provides an overview of all registered loggers
142120

143-
* Added `print()` and `format()` methods for Appenders
121+
- Added `print()` and `format()` methods for Appenders
144122

145-
* `AppenderMemory`: added `data` and `dt` active fields (which return the
123+
- `AppenderMemory`: added `data` and `dt` active fields (which return the
146124
log as a data.frame or data.table)
147125

148-
* Removed deprecated functions `FATAL()`, `ERROR()`. Use `lgr$fatal()`,
126+
- Removed deprecated functions `FATAL()`, `ERROR()`. Use `lgr$fatal()`,
149127
`lgr$error()`, ... instead.
150128

151-
* `AppenderMemory`: `$buffer_dt()` and `$show()` now handle custom fields
129+
- `AppenderMemory`: `$buffer_dt()` and `$show()` now handle custom fields
152130
containing atomic vectors correctly
153131

154-
155132
# lgr 0.3.0
156133

157-
* Added support for rotating log files via `AppenderFileRotating`,
134+
- Added support for rotating log files via `AppenderFileRotating`,
158135
`AppenderFileRotatingDate` and `AppenderFileRotatingTime`. Requires the
159136
package [rotor](https://github.com/s-fleck/rotor).
160-
161-
* functions like `show_log()`, `show_data()`,... now accept logger names as
137+
- functions like `show_log()`, `show_data()`,... now accept logger names as
162138
well as Logger or Appender objects as `target`.
163-
164-
* `AppenderFile$new()` now creates an empty file, or fails if it can't
139+
- `AppenderFile$new()` now creates an empty file, or fails if it can't
165140

166-
* Improved support for RMariaDB and dropped support for RMySQL
141+
- Improved support for RMariaDB and dropped support for RMySQL
167142

168-
* Improved support for RPostgres and dropped support for RPostgreSQL
143+
- Improved support for RPostgres and dropped support for RPostgreSQL
169144

170-
* added `reset` argument to `get_logger()`. This completely resets the
171-
configuration of the logger and also replaces special loggers (such as
145+
- added `reset` argument to `get_logger()`. This completely resets the
146+
configuration of the logger and also replaces special loggers (such as
172147
`LoggerGlue`) with vanilla ones.
173148

174-
175149
# lgr 0.2.2
176150

177-
* The root logger can now be configured via `options()` and/or environment
151+
- The root logger can now be configured via `options()` and/or environment
178152
variables (see `?lgr`)
179-
180-
* `basic_config()` now accepts thresholds ("info", "fatal") as arguments to
181-
`console` and `memory`.
182-
183-
* The default config of the root logger has changed. It now only has a
153+
- `basic_config()` now accepts thresholds ("info", "fatal") as arguments to
154+
`console` and `memory`.
155+
- The default config of the root logger has changed. It now only has a
184156
console appender and a default threshold of `"info"`. To get
185-
back the old behaviour run
157+
back the old behaviour run
186158
`basic_config(threshold = "all", console = "info", memory = "all")`.
187-
188-
* `$config(NULL)` now resets a Logger to its default/unconfigured state
159+
- `$config(NULL)` now resets a Logger to its default/unconfigured state
189160

190-
* `$config()` now accepts YAML as well as JSON files (or YAML/JSON as a
161+
- `$config()` now accepts YAML as well as JSON files (or YAML/JSON as a
191162
character string)
192-
193-
* `with_log_level()` and `with_log_value()` now accept logger names as well as
163+
- `with_log_level()` and `with_log_value()` now accept logger names as well as
194164
Logger objects as the `logger` argument
195-
196-
* `get_logger_glue()` now works as intended
197-
198-
* Deprecated `FATAL()`, `ERROR()`. Use `lgr$fatal()`, `lgr$error()`, ... instead.
165+
- `get_logger_glue()` now works as intended
199166

167+
- Deprecated `FATAL()`, `ERROR()`. Use `lgr$fatal()`, `lgr$error()`, ... instead.
200168

201169
# lgr 0.2.1
202170

203-
* Emergency fix that ensures test suite cleans up temporary files
204-
205-
* Removed .rd file for the unexported LoggerRoot class
171+
- Emergency fix that ensures test suite cleans up temporary files
206172

173+
- Removed .rd file for the unexported LoggerRoot class
207174

208175
# lgr 0.2.0
209176

210-
* `get_loggers()` registers new loggers in the lgr::loggers namespace, this
211-
is a more global and decoupled approach similar to how python logging handles
212-
loggers.
213-
214-
* removed `full_name` active binding for loggers. Loggers now only have
177+
- `get_loggers()` registers new loggers in the lgr::loggers namespace, this
178+
is a more global and decoupled approach similar to how python logging handles
179+
loggers.
180+
- removed `full_name` active binding for loggers. Loggers now only have
215181
qualified names and `name` is now identical to what `full_name` was before.
216182
For consistency the format method of `ancestry` has also been revised.
217-
218-
* Logger inheritance is now derived from the qualified name of a logger.
219-
Consequently `lg$parent` is now derived from `lg$name`, `lg$set_parent()`
183+
- Logger inheritance is now derived from the qualified name of a logger.
184+
Consequently `lg$parent` is now derived from `lg$name`, `lg$set_parent()`
220185
is no longer possible.
221-
222-
* If no threshold is set for a new Logger, it now inherits the threshold
186+
- If no threshold is set for a new Logger, it now inherits the threshold
223187
of its parent
224-
225-
* Depend on R6 >= 2.4.0 which includes relevant fixes to finalizers. finalize
188+
- Depend on R6 >= 2.4.0 which includes relevant fixes to finalizers. finalize
226189
methods are now private.
227-
228-
* Logger now have a `config` method that allows configuring Loggers with config
190+
- Logger now have a `config` method that allows configuring Loggers with config
229191
objects and YAML files (experimental)
230-
231-
* added `with_logging()`, the opposite of `without_logging()`. This can be
192+
- added `with_logging()`, the opposite of `without_logging()`. This can be
232193
handy for automated tests where you might want so switch logging off/on only
233194
for specific unit tests.
234195

235-
236196
# lgr 0.1.1
237197

238-
* Added `show_data()` and `show_dt()` for quick access to the root loggers
198+
- Added `show_data()` and `show_dt()` for quick access to the root loggers
239199
in memory log as `data.frame` or `data.table` respectively
240-
241-
* numerous small fixes
200+
- numerous small fixes
242201

243-
* removed non-breaking-spaces from .RD files. This caused unforeseen problems
202+
- removed non-breaking-spaces from .RD files. This caused unforeseen problems
244203
with the compiling the .pdf manual during the CRAN submission process.

0 commit comments

Comments
 (0)