-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
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
Document how to set "undef_column_value" #96
Comments
A quick |
Kinda busy here, but trying my best... |
This seems to me like an |
We'd need this to be able to prefix the message by the NDC which should default to an empty string in case there is no NDC set. |
My search for a workaround showed that NDC doesn't care about this config option: https://metacpan.org/dist/Log-Log4perl/source/lib/Log/Log4perl/NDC.pm#L19 |
This is what I've come up with:
And use %U instead of %x, with no whitespace to the next placeholder, which is %m in my case. |
@abraxxa Doc patches welcome? :-) |
Hi,
I couldn't find any documentation on how to set the "undef_column_value".
It causes problems when trying to convert the output to JSON as my expected field type is an integer which could be NULL if not available, however Log::Log4perl::Layout::PatternLayout converts everything that's undef to a string, i.e. "[undef]".
Many thanks.
The text was updated successfully, but these errors were encountered: