roman-mityukov / log4j2-android Goto Github PK
View Code? Open in Web Editor NEWA simple library that allows to use Log4j2:2.3 on android.
A simple library that allows to use Log4j2:2.3 on android.
I want to have 2 or more appenders so i can choose in which filelogger i want to log each time. How can i do that?
I have tested on Android 4.2 arm platform using the demo and it seems not working fine with the configuration in demo.
I just change the codes in MainActivity.kt from:
logger.info("This is info logging of log4j2") logger.debug("This is debug logging of log4j2") logger.error("This is error logging of log4j2")
to:
for(i in 0..10000){ logger.info("This is info logging of log4j2") logger.debug("This is debug logging of log4j2") logger.error("This is error logging of log4j2")}
to ensure that log file size will >1MB.At last the log still in one file, not split to multiple log files even if the app re-runs for many times.
So why the RollingFile configuration not work?
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.