mihnita / java-color-loggers Goto Github PK
View Code? Open in Web Editor NEWColor console logging for log4j and jdk
Home Page: http://www.mihai-nita.net/java/
License: Apache License 2.0
Color console logging for log4j and jdk
Home Page: http://www.mihai-nita.net/java/
License: Apache License 2.0
Does this only work for console logging? what about file logging?
Can you add a LICENSE.txt file? Apache 2.0 would be best.
HI, I use your color-loggers its fine.But I found problem when log params contains Exception Object. It can not print the exception stack trace log.
I used spring-boot-starter-log4j + lombok, and the Appender is com.mihnita.colorlog.log4j.AnsiColorConsoleAppender.
I found the method subAppend() is covered when I read the source of AnsiColorConsoleAppender. May be this is the problem.
Wish your reply, thanks!
The problem with this library is that it pulls log4j and logback whether or not you need them. This can cause issues where they fight each other.
Please install our new product, Sonatype Lift with advanced features
Hi I use your color loggers its fine. But I found problem when message contains formatting escapes in text. For example new line or tab escapes.
logger.warn("this is ok \n And all \n this have only\n\tblack color \n and here is colour again?");
System.out.println("Is it black again?");
will print:
"this is ok" - in colour
"And all this have black color" - this is without color
"and here is colour again?" - again in color
its quite strange behaviour. I would expect that all next messages will be colored but consequent print prints normally.
The project could not be analyzed because of build errors. Please review the error messages here. Another build will be scheduled within 24 hours. If the build is successful this issue will be closed, otherwise the error message will be updated.
This is an automated GitHub Issue created by Sonatype DepShield. GitHub Apps, including DepShield, can be managed from the Developer settings of the repository administrators.
I'm not sure if it requires any additional classes. Maybe start by providing a few examples? I'll report back when I get it working.
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.