-
Notifications
You must be signed in to change notification settings - Fork 7
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
PatternLayout caller level wrong #2
Comments
Hello @heikojansen and @nvx. I'm sorry for the delay. I'm short on time and am changing jobs. It looks like I won't be using the module. Would either of you like to adopt it, or at least be a co-maintainer? |
I don´t have any grand plans for the module so if anyone has and wants to adopt it, I´ll just step aside (now or in the future). |
@heikojansen @timbunce I'm willing to take COMAINT on this so we can get these issues fixed and get a new CPAN release done. I'm MSCHOUT on CPAN. If @heikojansen wants to do it instead thats ok. Just trying to pitch in to get the ball rolling as this module is incredibly useful to my employer. |
Just wanted to ping you again @timbunce about giving me permission to release the fixes to this module. |
I've forked the repo to add another feature which - optionally - allows structured logging by using multiple arguments for the log methods. |
For the record, I've passed primary maintainership to @mschout. Thanks Michael! |
I've just uploaded v0.50, which fixes this issue, as well as adds the utf8 config flag. @heikojansen I'll look at your additions for a future release. Feel free to rebase against my fork and submit a PR to me directly https://github.com/mschout/Log-Log4perl-Layout-JSON/commits/master |
Thanks for taking this on (although, personally, I would´ve preferred if you´d kept the existing version numbering scheme). |
Can anyone please update the code on cpan with new version. It doesn't help to only have it here on github |
and I have created a new issue because the split function needs the parameter "-1" to be passed to not omit last value it's empty (empty string in this case). @mschout do you monitor the issues? |
@marcelser cf. the comment by mschout (10. Apr) and have a look at https://metacpan.org/pod/Log::Log4perl::Layout::JSON |
@marcelser @heikojansen This repo is no longer the official repo as @timbunce has handed it off to me. My fork is the official repo of record at this point (and META.json reflects this in current release). See https://github.com/mschout/Log-Log4perl-Layout-JSON which is the most current release (v0.52). This issue was fixed in v0.50 on CPAN. @timbunce can close this issue. |
Thanks @mschout! |
When using the PatternLayout placeholders that display information about the caller (%F for example) this module currently shows Logger.pm as being the file where the logging event occurred instead of the correct source file.
I suspect this is due to the caller level not being incremented here: https://github.com/timbunce/Log-Log4perl-Layout-JSON/blob/master/lib/Log/Log4perl/Layout/JSON.pm#L267
The text was updated successfully, but these errors were encountered: