From ceb372d780c101418064fc6134b9a53b65fe0604 Mon Sep 17 00:00:00 2001 From: Dustin Wilson Date: Mon, 6 Nov 2023 08:55:05 -0600 Subject: [PATCH] Updated README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 33af6bf..54b446f 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,7 @@ abstract class Handler { public const NOW = 8; public const OUTPUT = 16; + protected ?array $lastOutputThrowable; protected array $outputBuffer; // Options @@ -256,7 +257,7 @@ Outputs the stored throwable arrays in the output buffer. #### MensBeam\Catcher\Handler::getLastOutputThrowable #### -Returns the last output throwable array handled by this handler (or null if there hasn't been one). +Returns the last output throwable array handled by this handler (or null if there hasn't been one); useful when debugging #### MensBeam\Catcher\Handler::getOption #### @@ -337,12 +338,14 @@ class JSONHandler extends Handler { public const CONTENT_TYPE = 'application/json'; protected bool $_prettyPrint = true; + protected bool $_prettyPrintWhenLogging = false; } ``` #### Options #### _prettyPrint_: If true the handler will pretty print JSON output. Defaults to _true_. +_prettyPrintWhenLogging_: If true the handler will pretty print JSON output when logging. Defaults to _false_. ### MensBeam\Catcher\PlainTextHandler ###