Gradle color output

Found the answer! According to this gradle forum post, there’s no public interface for coloring the output of the logger. You are free to use the internal classes, but those may change in future versions. In the gradle script, put at the top: Older Gradle: import org.gradle.logging.StyledTextOutput; import org.gradle.logging.StyledTextOutputFactory; import static org.gradle.logging.StyledTextOutput.Style; Gradle 3.3+: import … Read more

How to specify common application data folder for log4net?

We just use this: <param name=”File” value=”${ALLUSERSPROFILE}/Company/Product/Logs/error.log”/> It works great. This line can simply be inserted into your current appender configuration: <appender name=”RollingFileAppender” type=”log4net.Appender.RollingFileAppender”> <param name=”File” value=”${ALLUSERSPROFILE}/Company/Product/Logs/error.log”/> </appender>

Logback JsonLayout printing all logs on the same line

You need to set appendLineSeparator option to true for ch.qos.logback.contrib.json.classic.JsonLayout. Example of this: <configuration> <appender name=”STDOUT” class=”ch.qos.logback.core.ConsoleAppender”> <layout class=”ch.qos.logback.contrib.json.classic.JsonLayout”> <jsonFormatter class=”ch.qos.logback.contrib.jackson.JacksonJsonFormatter” /> <timestampFormat>yyyy-MM-dd’ ‘HH:mm:ss.SSS</timestampFormat> <appendLineSeparator>true</appendLineSeparator> </layout> </appender> <root level=”debug”> <appender-ref ref=”STDOUT” /> </root>

Overriding logback configurations

I don’t think that you can overwrite logback.xml-definitions from an included file. But I have an approach that solves your question regarding overriding the root-logger-level, using variable substitution with default values: logback.xml <configuration> <include file=”includedFile.xml” /> <!– STDOUT appender stuff –> <root level=”${root.level:-DEBUG}”> <appender-ref ref=”STDOUT” /> </root> <configuration> includedFile.xml <included> <!– override the default value; … Read more

unable to see request logs in webpack-dev-server

Basically, webpack-dev-server uses express to spawn a webserver. To enable seeing logs, one needs to set DEBUG environment variable as required by express export DEBUG=’express:*’ This started showing me logs of various requests received by webpack-dev-server. To disable the logs, set the environment variable empty again export DEBUG= This works even for loopback projects and … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)