View | Details | Raw Unified | Return to bug 55215
Collapse All | Expand All

(-)webapps/docs/logging.xml (-31 / +40 lines)
Lines 424-475 Link Here
424
        following content and save it into <code>$CATALINA_BASE/lib</code></li>
424
        following content and save it into <code>$CATALINA_BASE/lib</code></li>
425
    </ol>
425
    </ol>
426
    <source>
426
    <source>
427
# common properties for use within this file
428
#
429
log.dir = ${catalina.base}/logs
430
# Roll-over the log once per day
431
roll.pattern.daily = '.'yyyy-MM-dd
432
layout.pattern = %d [%t] %-5p %c- %m%n
433
434
# define the logger that will catch all unmatched entries
435
#
427
log4j.rootLogger=INFO, CATALINA
436
log4j.rootLogger=INFO, CATALINA
428
437
429
# Define all the appenders
438
# Define all the appenders
430
log4j.appender.CATALINA=org.apache.log4j.DailyRollingFileAppender
439
#
431
log4j.appender.CATALINA.File=${catalina.base}/logs/catalina.
440
log4j.appender.CATALINA = org.apache.log4j.DailyRollingFileAppender
432
log4j.appender.CATALINA.Append=true
441
log4j.appender.CATALINA.File = ${log.dir}/catalina
433
log4j.appender.CATALINA.Encoding=UTF-8
442
log4j.appender.CATALINA.Append = true
434
# Roll-over the log once per day
443
log4j.appender.CATALINA.Encoding = UTF-8
435
log4j.appender.CATALINA.DatePattern='.'yyyy-MM-dd'.log'
444
log4j.appender.CATALINA.DatePattern = ${roll.pattern.daily}
436
log4j.appender.CATALINA.layout = org.apache.log4j.PatternLayout
445
log4j.appender.CATALINA.layout = org.apache.log4j.PatternLayout
437
log4j.appender.CATALINA.layout.ConversionPattern = %d [%t] %-5p %c- %m%n
446
log4j.appender.CATALINA.layout.ConversionPattern = ${layout.pattern}
438
447
439
log4j.appender.LOCALHOST=org.apache.log4j.DailyRollingFileAppender
448
log4j.appender.LOCALHOST = org.apache.log4j.DailyRollingFileAppender
440
log4j.appender.LOCALHOST.File=${catalina.base}/logs/localhost.
449
log4j.appender.LOCALHOST.File = ${log.dir}/localhost
441
log4j.appender.LOCALHOST.Append=true
450
log4j.appender.LOCALHOST.Append = true
442
log4j.appender.LOCALHOST.Encoding=UTF-8
451
log4j.appender.LOCALHOST.Encoding = UTF-8
443
log4j.appender.LOCALHOST.DatePattern='.'yyyy-MM-dd'.log'
452
log4j.appender.LOCALHOST.DatePattern = ${roll.pattern.daily}
444
log4j.appender.LOCALHOST.layout = org.apache.log4j.PatternLayout
453
log4j.appender.LOCALHOST.layout = org.apache.log4j.PatternLayout
445
log4j.appender.LOCALHOST.layout.ConversionPattern = %d [%t] %-5p %c- %m%n
454
log4j.appender.LOCALHOST.layout.ConversionPattern = ${layout.pattern}
446
455
447
log4j.appender.MANAGER=org.apache.log4j.DailyRollingFileAppender
456
log4j.appender.MANAGER = org.apache.log4j.DailyRollingFileAppender
448
log4j.appender.MANAGER.File=${catalina.base}/logs/manager.
457
log4j.appender.MANAGER.File = ${log.dir}/manager
449
log4j.appender.MANAGER.Append=true
458
log4j.appender.MANAGER.Append = true
450
log4j.appender.MANAGER.Encoding=UTF-8
459
log4j.appender.MANAGER.Encoding = UTF-8
451
log4j.appender.MANAGER.DatePattern='.'yyyy-MM-dd'.log'
460
log4j.appender.MANAGER.DatePattern = ${roll.pattern.daily}
452
log4j.appender.MANAGER.layout = org.apache.log4j.PatternLayout
461
log4j.appender.MANAGER.layout = org.apache.log4j.PatternLayout
453
log4j.appender.MANAGER.layout.ConversionPattern = %d [%t] %-5p %c- %m%n
462
log4j.appender.MANAGER.layout.ConversionPattern = ${layout.pattern}
454
463
455
log4j.appender.HOST-MANAGER=org.apache.log4j.DailyRollingFileAppender
464
log4j.appender.HOST-MANAGER = org.apache.log4j.DailyRollingFileAppender
456
log4j.appender.HOST-MANAGER.File=${catalina.base}/logs/host-manager.
465
log4j.appender.HOST-MANAGER.File = ${log.dir}/host-manager
457
log4j.appender.HOST-MANAGER.Append=true
466
log4j.appender.HOST-MANAGER.Append = true
458
log4j.appender.HOST-MANAGER.Encoding=UTF-8
467
log4j.appender.HOST-MANAGER.Encoding = UTF-8
459
log4j.appender.HOST-MANAGER.DatePattern='.'yyyy-MM-dd'.log'
468
log4j.appender.HOST-MANAGER.DatePattern = ${roll.pattern.daily}
460
log4j.appender.HOST-MANAGER.layout = org.apache.log4j.PatternLayout
469
log4j.appender.HOST-MANAGER.layout = org.apache.log4j.PatternLayout
461
log4j.appender.HOST-MANAGER.layout.ConversionPattern = %d [%t] %-5p %c- %m%n
470
log4j.appender.HOST-MANAGER.layout.ConversionPattern = ${layout.pattern}
462
471
463
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
472
log4j.appender.CONSOLE = org.apache.log4j.ConsoleAppender
464
log4j.appender.CONSOLE.Encoding=UTF-8
473
log4j.appender.CONSOLE.Encoding = UTF-8
465
log4j.appender.CONSOLE.layout = org.apache.log4j.PatternLayout
474
log4j.appender.CONSOLE.layout = org.apache.log4j.PatternLayout
466
log4j.appender.CONSOLE.layout.ConversionPattern = %d [%t] %-5p %c- %m%n
475
log4j.appender.CONSOLE.layout.ConversionPattern = ${layout.pattern}
467
476
468
# Configure which loggers log to which appenders
477
# Configure which loggers log to which appenders
469
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=INFO, LOCALHOST
478
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost] = INFO, LOCALHOST
470
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager]=\
479
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager] =\
471
  INFO, MANAGER
480
  INFO, MANAGER
472
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager]=\
481
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager] =\
473
  INFO, HOST-MANAGER
482
  INFO, HOST-MANAGER
474
</source>
483
</source>
475
    <ol start="2">
484
    <ol start="2">

Return to bug 55215