From 4a7eb620954d022d1d2079f0a1d62a5401ba54b3 Mon Sep 17 00:00:00 2001 From: Tyrsson Date: Tue, 18 Jan 2022 15:12:37 -0600 Subject: [PATCH 1/2] Changed default separator for array fields Signed-off-by: Joey Smith (Tyrsson) jsmith@webinertia.net Changed the dash to underscore as default separator for the extra array fields. In Writers.md Obvious Fix Signed-off-by: Joey Smith --- .gitignore | 3 +++ docs/book/writers.md | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5d9bb2a2..679d792f 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,6 @@ /vendor/ .phpunit.result.cache .phpcs-cache +.buildpath +.project +.settings/org.eclipse.php.core.prefs diff --git a/docs/book/writers.md b/docs/book/writers.md index 55241869..8b454654 100644 --- a/docs/book/writers.md +++ b/docs/book/writers.md @@ -131,7 +131,7 @@ message, in the database fields date, type, and event, respectively. `Laminas\Log\Writer\Db` has a fourth optional parameter in the constructor. This parameter is the character separator for array fields in the log event. For instance, if we have a log event that contains the field `extra`, and that field -is an array, its elements will be translated as 'extra-field', where '-' is the +is an array, its elements will be translated as `extra_field`, where '_' is the character separator (default), and 'field' is the subname of the specific field found in the `extra` array. From 2700b3c8cd7b7c994c8e153493af475a85b6dbbe Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Fri, 8 Apr 2022 14:05:29 -0500 Subject: [PATCH 2/2] Fixed .gitignore file - no other changes from previous commit Signed-off-by: Joey Smith Signed-off-by: Joey Smith --- .gitignore | 3 --- 1 file changed, 3 deletions(-) diff --git a/.gitignore b/.gitignore index 679d792f..5d9bb2a2 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,3 @@ /vendor/ .phpunit.result.cache .phpcs-cache -.buildpath -.project -.settings/org.eclipse.php.core.prefs