[GH-ISSUE #180] RedisHandler trying to store an array? #58

Closed
opened 2026-03-04 02:11:46 +03:00 by kerem · 1 comment
Owner

Originally created by @dubcanada on GitHub (Apr 9, 2013).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/180

Hello,

I have a very simple RedisHandler setup with no formatters. I am trying to do the following...

Flight::logger()->addError(array('chickenshit'=>'unsure'));

However all it stores is

Array [] []

Is there anyway to store an array? Is it because of the way it is setup?

Sorry if this is a weird question, it just seems something like redis should be able to store arrays/objects extremely easily.

Originally created by @dubcanada on GitHub (Apr 9, 2013). Original GitHub issue: https://github.com/Seldaek/monolog/issues/180 Hello, I have a very simple RedisHandler setup with no formatters. I am trying to do the following... ``` Flight::logger()->addError(array('chickenshit'=>'unsure')); ``` However all it stores is ``` Array [] [] ``` Is there anyway to store an array? Is it because of the way it is setup? Sorry if this is a weird question, it just seems something like redis should be able to store arrays/objects extremely easily.
kerem closed this issue 2026-03-04 02:11:46 +03:00
Author
Owner

@Seldaek commented on GitHub (Apr 10, 2013):

The message is supposed to be a string. If you want to send arrays or anything else really, you can pass it in the context argument. e.g. ->addError('something went wrong', array('foo' => 'bar')).

<!-- gh-comment-id:16181915 --> @Seldaek commented on GitHub (Apr 10, 2013): The message is supposed to be a string. If you want to send arrays or anything else really, you can pass it in the context argument. e.g. `->addError('something went wrong', array('foo' => 'bar'))`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/monolog#58
No description provided.