We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What ZF application I'm using when issue happen ?
What PHP version you're using?
What ErrorHeroModule version you're using?
Write logs to database.
Nothing happens in database once bug has been occured.
Method $this->getDateTimeFormat() https://github.com/samsonasik/ErrorHeroModule/blob/master/src/Handler/Formatter/Json.php#L26 return timestamp in "c" format 2004-02-12T15:19:21+00:00 . On my preset Mysql requires "Y-m-d H:i:s"
Change type of 'date' to text
The text was updated successfully, but these errors were encountered:
In that case, you can setup your log config to set "formatter"'s dateTimeFormat with the following under "options" in db writers config:
// config/autoload/error-hero-module.local.php 'log' => [ 'ErrorHeroModuleLogger' => [ 'writers' => [ [ 'name' => 'db', 'options' => [ // ... current config 'formatter' => [ 'name' => 'db', 'options' => [ 'dateTimeFormat' => 'Y-m-d H:i:s', ], ], // ... ], ], ], ], ],
Sorry, something went wrong.
Thanks, it works for me
No branches or pull requests
What ZF application I'm using when issue happen ?
What PHP version you're using?
What ErrorHeroModule version you're using?
Expected behavior
Write logs to database.
Actual behavior
Nothing happens in database once bug has been occured.
Explanation
Method $this->getDateTimeFormat() https://github.com/samsonasik/ErrorHeroModule/blob/master/src/Handler/Formatter/Json.php#L26 return timestamp in "c" format 2004-02-12T15:19:21+00:00 . On my preset Mysql requires "Y-m-d H:i:s"
Workaround
Change type of 'date' to text
The text was updated successfully, but these errors were encountered: