#------------------------------------------------------------------------------- # log4j.properties file. There are three standard logs, system, admin, and # transaction. The admin log is not used in simulators. The user may use # class based logs, which will fall into the system (rootLogger) log. #------------------------------- Root (system) Logger Trace in dev, WARN in prod log4j.rootLogger=WARN, SYSTEM #----------------------------------- hapi Server (part of system, control level) log4j.logger.ca.uhn.hl7v2=WARN, SYSTEM #------------------------------------------------------------------ Transactions log4j.logger.transaction=INFO, SYSTEM, TRANSACTION #------------------------ Administrative log, put into system during development log4j.logger.admin=INFO, SYSTEM, ADMIN #--------------------------------------------------- daily rolling file appender log4j.appender.SYSTEM=org.apache.log4j.DailyRollingFileAppender log4j.appender.SYSTEM.File=./log/system.log #---------------------------------------- Roll the log file at midnight each day log4j.appender.SYSTEM.DatePattern='.'yyyy-MM-dd log4j.appender.SYSTEM.layout=org.apache.log4j.PatternLayout log4j.appender.SYSTEM.layout.ConversionPattern=[%t] %5p %C %m%n #--------------------------------------------------- daily rolling file appender log4j.appender.ADMIN=org.apache.log4j.DailyRollingFileAppender log4j.appender.ADMIN.File=./log/admin.log #---------------------------------------- Roll the log file at midnight each day log4j.appender.ADMIN.DatePattern='.'yyyy-MM-dd log4j.appender.ADMIN.layout=org.apache.log4j.PatternLayout log4j.appender.ADMIN.layout.ConversionPattern=[%t] %5p %C %m%n #------------------------------------------------------------ Hibernate Appender # Used for Transactions logs, which are maintained in the LogEventEntity table # in the public schema. User is responsible for adding the MDC keys: # UserEntity.id, InstitutionEntity.id and SessionEntity.id to the correct String # values BEFORE corresponding log entries are made. See LogEventEntity.java for # details #------------------------------------------------------------------------------- log4j.appender.TRANSACTION=HibernateAppender log4j.appender.TRANSACTION.sessionServiceClass=HibernateUtil log4j.appender.TRANSACTION.loggingEventClass=LogEventEntity