From 8bf7ce910fb8ad1b1b76006244e44c2cd554aabf Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 25 Jan 2024 17:22:54 -0700 Subject: document the logger API option --- docs/modules/api/pages/options.adoc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/modules/api/pages') diff --git a/docs/modules/api/pages/options.adoc b/docs/modules/api/pages/options.adoc index 1b753e41..3e7bb62f 100644 --- a/docs/modules/api/pages/options.adoc +++ b/docs/modules/api/pages/options.adoc @@ -66,6 +66,13 @@ Instead of providing a Ruby block containing extensions to register, this option |_not set_ |`Extensions::Registry` instance +|`:logger` +|Shorthand to assign a new value to the global `LoggerManager.logger`. +This is persistent change, so you either have to reset the value afterwards or pass the option each time you call the API. +If value is falsy, it assigns a null logger, effectively turning off logging. +|_not set_ +|`Logger` instance + |`:parse_header_only` |If `true`, the parser stops after reading the header. |`false` -- cgit v1.2.3