Skip to content
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

Closed
nvx opened this issue Jun 3, 2015 · 14 comments
Closed

PatternLayout caller level wrong #2

nvx opened this issue Jun 3, 2015 · 14 comments

Comments

@nvx
Copy link

nvx commented Jun 3, 2015

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

@heikojansen
Copy link

@timbunce : Would be really nice if you could accept pull request #5 (and close #4) and release a new version to CPAN!
Accepting pull req #6 for the new release would be welcome, too, but imho fixing this issue is more important.
Thanks!

@timbunce
Copy link
Owner

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?

@heikojansen
Copy link

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).
On the other hand I´d like to see the current pull requests applied and a new version released to CPAN (I´m HJANSEN there). And I´m OK with looking out for the occasional pull request or bug report so being co-maintainer would be OK for me, too.

@mschout
Copy link

mschout commented Feb 2, 2017

@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.

@mschout
Copy link

mschout commented Apr 6, 2017

Just wanted to ping you again @timbunce about giving me permission to release the fixes to this module.

@heikojansen
Copy link

I've forked the repo to add another feature which - optionally - allows structured logging by using multiple arguments for the log methods.
Cf. the relevant parts in master...heikojansen:develop
(sorry, no single commit for the feature in that branch)
No matter who ends up as COMAINT I'd be interested in having that added to a future release. What do you think?

@timbunce
Copy link
Owner

timbunce commented Apr 8, 2017

For the record, I've passed primary maintainership to @mschout. Thanks Michael!

@mschout
Copy link

mschout commented Apr 10, 2017

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

@heikojansen
Copy link

Thanks for taking this on (although, personally, I would´ve preferred if you´d kept the existing version numbering scheme).
Will send a PR soon.

@marcelser
Copy link

Can anyone please update the code on cpan with new version. It doesn't help to only have it here on github

@marcelser
Copy link

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?

@heikojansen
Copy link

@marcelser cf. the comment by mschout (10. Apr) and have a look at https://metacpan.org/pod/Log::Log4perl::Layout::JSON
Arguably this issue should have already been closed.

@mschout
Copy link

mschout commented Dec 14, 2017

@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.

@timbunce
Copy link
Owner

Thanks @mschout!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants