Comments (2)
Can you capture this in a bit of test code?
from log4perl.
These 2 ok() test assertions should pass. Unfortunately the second one is failing.
#########################################################
# Testing create_at_logtime with file_switch()
#########################################################
unlink "${testfile}_6"; # delete leftovers from previous tests
$data = qq(
log4perl.category = DEBUG, Logfile
log4perl.appender.Logfile = Log::Log4perl::Appender::File
log4perl.appender.Logfile.filename = ${testfile}_6
log4perl.appender.Logfile.create_at_logtime = 1
log4perl.appender.Logfile.layout = Log::Log4perl::Layout::SimpleLayout
);
Log::Log4perl->init(\$data);
ok(! -f "${testfile}_6");
$app = Log::Log4perl->appenders()->{Logfile};
$app->file_switch("${testfile}_7");
ok(! -f "${testfile}_7");
unlink "${testfile}_6", "${testfile}_7";
from log4perl.
Related Issues (20)
- Unicode file names on Windows? HOT 4
- Log::Log4perl::Catalyst has no version HOT 1
- Appender mail crashes at reading configuration HOT 2
- Using dots in property configuration names HOT 1
- Log::Log4perl::DateFormat caches time zone offset HOT 1
- Is log4perl affected by CVE-2021-44228? (log4j) HOT 2
- Log::Log4perl::Appender::File is using two args open HOT 2
- Using the Log4Perl object as a function argument in an unused line of code makes Perl crash while destroying the objects HOT 3
- Appender::Screen buffering issue when used inside Docker container
- add delete method to MDC HOT 1
- Repository link wrong in MetaCPAN HOT 1
- Perl 5 blead change breaks Log::Log4perl HOT 4
- utf8 is not passed to Log::Dispatch::File* appenders
- [feature/bug] provide a way to get appender instances that are not bound to any logger HOT 1
- it would be cool if MDC->put accepts multiple key value pairs
- :no_extra_logdie_message should respect $EXCEPTIONS_BEING_CAUGHT
- unable to subclass Log::Log4perl::Logger
- Add ability to use wildcards in cateory selectors in the log4perl config
- parameterized logging? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from log4perl.