P6spy Log ВыводJAVA

Программисты JAVA общаются здесь
Anonymous
P6spy Log Вывод

Сообщение Anonymous »

Я хочу вывести свой журнал SQL в консоли и файл оба, но на практике просто вывод одного из них. Как реализовать оба?# P6Spy spy.properties

# This class is specifically designed to read the customLogMessageFormat property.
logMessageFormat=com.p6spy.engine.spy.appender.CustomLogMessageFormat

customLogMessageFormat={date}|{elapsed}ms|{category}|{sql}

# ------------------------------------------------------------------

# both console and logfile
appender=com.p6spy.engine.spy.appender.StdoutLogger,com.p6spy.engine.spy.appender.FileLogger
logFile=./logs/p6spy-sql.log

modulelist=com.p6spy.engine.outage.P6OutageFactory

# slow sql
outagedetection=true
outagedetectioninterval=2

# other
excludecategories=info,debug,result,commit,resultset
dateformat=yyyy-MM-dd HH:mm:ss


Подробнее здесь: https://stackoverflow.com/questions/797 ... t-location

Вернуться в «JAVA»