Log4j websphere

8 views
Skip to first unread message

Paul

unread,
Mar 30, 2017, 5:04:26 AM3/30/17
to grailsEnCastellano
Hola, tengo lo siguiente configurado en mi config.groovy :

        production {
            appenders {
                appender new DailyRollingFileAppender(
                        name: 'infoAppender',
                        datePattern: "'.'yyyy-MM-dd",
                        threshold: org.apache.log4j.Level.INFO,
                        fileName: '/home/user/logs/test_info.log', 
                        layout: pattern(conversionPattern:'%d [%t] %-5p %c{2} %x - %m%n')
                        )

Esto me genera correctamente el log, pero quiero que sea una variable de websphere :

        production {
            appenders {
                appender new DailyRollingFileAppender(
                        name: 'infoAppender',
                        datePattern: "'.'yyyy-MM-dd",
                        threshold: org.apache.log4j.Level.INFO,
                        fileName: '${prod_path}/test_info.log',
                        layout: pattern(conversionPattern:'%d [%t] %-5p %c{2} %x - %m%n')
                        )

He creado la variable en WAS pero no me crea el archivo, algo que se me este olvidando?
Reply all
Reply to author
Forward
0 new messages