cromedome / dancer2-logger-log4perl Goto Github PK
View Code? Open in Web Editor NEWDancer2 logger interface for Log4perl.
Dancer2 logger interface for Log4perl.
When using the following pattern layout:
log4perl.appender.LOG1.layout = Log::Log4perl::Layout::PatternLayout::Multiline
log4perl.appender.LOG1.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} - [%F{1}-%05P-%05L] %-5p : %m%n
there exists a pattern %05L which is supposed to report the line number within the file where the statement was issued, as well as the Source file (%F{1}) containing the logging statement. The results are as follows:
2024-07-31 09:12:28 - [Log4perl.pm-360554-00083] DEBUG : I'm in ur index
2024-07-31 09:12:28 - [Log4perl.pm-360554-00083] DEBUG : Attempting to find user admin in realm config
2024-07-31 09:12:28 - [Log4perl.pm-360554-00083] INFO : Here we are in Mist
2024-07-31 09:12:28 - [Log4perl.pm-360554-00083] DEBUG : Debug message
Everything comes from line 00083 in the "Log4perl.pm" package. Ideally, it would have the name of my Dancer2 library in place of the 'Log4perl.pm' string, based on the %F{1}, and the line number within that file in place of the '00083'. Historically, that is how it works when using Log4perl normally in a program (with the %F{1} option
Thank you for your attention to this matter.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.