mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
moved log location
v39 release
This commit is contained in:
@@ -8,6 +8,7 @@ import java.util.Properties;
|
||||
import javax.swing.JOptionPane;
|
||||
import javax.swing.UIManager;
|
||||
|
||||
import org.apache.log4j.Appender;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.apache.log4j.PropertyConfigurator;
|
||||
import org.diylc.appframework.miscutils.ConfigurationManager;
|
||||
@@ -33,7 +34,9 @@ public class DIYLCStarter {
|
||||
/**
|
||||
* @param args
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
public static void main(String[] args) {
|
||||
// System.setProperty("app.root", System.getProperty("user.home") + File.separator + ".diylc" + File.separator);
|
||||
|
||||
URL url = DIYLCStarter.class.getResource("log4j.properties");
|
||||
Properties properties = new Properties();
|
||||
try {
|
||||
|
||||
@@ -2,7 +2,7 @@ log4j.rootLogger = DEBUG, fileout, stdout
|
||||
log4j.appender.fileout = org.diylc.appframework.miscutils.NewLogForEachRunFileAppender
|
||||
log4j.appender.fileout.layout.ConversionPattern = %d{ABSOLUTE} %5p [%t] %c{1} - %m%n
|
||||
log4j.appender.fileout.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.fileout.File = log/log.log
|
||||
log4j.appender.fileout.File = ${user.home}/.diylc/logs/log.txt
|
||||
|
||||
log4j.appender.stdout = org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.layout.ConversionPattern = %d{ABSOLUTE} %5p [%t] %c{1} - %m%n
|
||||
|
||||
Reference in New Issue
Block a user