Tags » Java

在Tomcat中找到Log4j的log

set up log4j in your application


log4j.rootLogger=INFO, A1, A2

# A1 is set to be a ConsoleAppender
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=[%d{MM/dd HH:mm:ss}] [%p] [%C : %M(%L)] %m%n

# A2 is set to be a file
log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A2.layout=org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=[%d{MM/dd HH:mm:ss}] [%p] [%C : %M(%L)] %m%n
log4j.appender.A2.File=./abccclog/Log4j.log		

… 35 more words
問題記錄

Flight to Bali

Bali Day 1: Saturday, August 5, 2017

My flight to Bali was fairly early, so I arranged for a taxi to pick me up at the Hotel Jambuluwuk at 6:15, giving me just enough time to eat breakfast. 2,118 more words

Teachers For Global Classrooms

Plumbing included with auto-configuration in Spring Data Cassandra

I received a few comments on my repository for Reactive Streams with Spring Data Cassandra regarding configuration that was not required. This was due to me not making use of Spring Boot’s auto-configuration which would of allowed me to remove a whole class from my code! 880 more words

Java

Kotlin JDBC - Create a Table

We can use JDKs JDBC API to create a table in a database. We create tables by using the Statements::executeUpdate method and pass the proper SQL command along to the database. 1,094 more words

Deploying a containerized Java web application

Install Docker CE

1) Set up the docker repository:

sudo apt-get update

sudo apt-get install apt-transport-https ca-certificates curl software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository "deb  https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
…
230 more words

Cloud

Curious case of Strategies - The Problem

Sometimes often we come across situations where we need the endless streams of if else statements. This leads to inconsistent code which can be really difficult to read and maintain. 261 more words

Java