log4j.debug=true

#Log Levels = (Most) DEBUG,INFO,WARN,ERROR,FATAL (Least) or ALL to obtain all logs
# set root logger to debug level to output to the standard output/console appender
log4j.threshold=INFO
log4j.rootLogger=INFO, mhpC, mhpF, mhpFE, mhpFD

# create logger to capture timing info
#log4j.logger.com.agilex.healthcare.mhp.events=INFO, mhpTiming, mhpTimingDebug
log4j.logger.com.agilex.healthcare.mhp.events=INFO, mhpTiming
log4j.additivity.com.agilex.healthcare.mhp.events=false

log4j.logger.com.agilex.healthcare.mhp.feedback=INFO, mhpFeedback
log4j.additivity.com.agilex.healthcare.mhp.feedback=false

# create logger to capture ovid connection management info
log4j.logger.com.agilex.healthcare.mobilehealthplatform.datalayer.ovid.connectionmanagement=ALL, mhpCm, mhpCmD
log4j.additivity.com.agilex.healthcare.mobilehealthplatform.datalayer.ovid.connectionmanagement=false

# only log springframework warnings, switch to debug/all if troubleshooting something within spring
log4j.logger.org.springframework=FINE
log4j.logger.org.hibernate=DEBUG
log4j.logger.org.apache.cocoon=WARN
log4j.logger.com.gargoylesoftware=WARN
#log4j.logger.org.springframework.security=DEBUG

# connection manager is the layer that hands out connections to ovid.  Turn to debug to trouble shoot connection issues
#log4j.logger.com.agilex.healthcare.mobilehealthplatform.datalayer.ovid.connectionmanagement=DEBUG

# medsphere items refer to the medsphere ovid layer.  Turn to debug to troubleshoot ovid issues
log4j.logger.com.medsphere=WARN
log4j.logger.org.medsphere=WARN

# the following are used for amazon s3
log4j.logger.org.jets3t=INFO
log4j.logger.org.apache.commons.httpclient=INFO
log4j.logger.httpclient.wire=INFO

# output rx refill to its own log
log4j.logger.com.agilex.healthcare.mobilehealthplatform.datalayer.medication.MedicationRefillDataLayerMock=ERROR,mhpRX
log4j.additivity.com.agilex.healthcare.mobilehealthplatform.datalayer.medication.MedicationRefillDataLayerMock=true


#modify threshold for internal components that are usually chatty
log4j.logger.com.agilex.healthcare.mobilehealthplatform.datalayer.lab.AbnormalityFlagCalculator=INFO
log4j.logger.com.agilex.healthcare.mobilehealthplatform.utils.uriformaters.linkbuilder.PatientLinkBuilder=INFO
log4j.logger.com.agilex.healthcare.mobilehealthplatform.datalayer.patient.PatientFormatter=INFO
log4j.logger.com.agilex.healthcare.mobilehealthplatform.serviceregistry.DomainServiceRegistry=DEBUG


#MDWS Scheduling
log4j.logger.com.agilex.healthcare.schedulingmanager.mdws=INFO, mhpSchedMDWS
log4j.logger.com.agilex.healthcare.schedulingmanager.validator.ResponseValidator=DEBUG, mhpSchedMDWS
log4j.logger.com.agilex.healthcare.schedulingmanager.datalayer.EmrDataLayerMdws=DEBUG, mhpSchedMDWS
log4j.logger.com.agilex.healthcare.schedulingmanager.datalayer.SchedulingClinicsDataLayerMdws=DEBUG, mhpSchedMDWS
log4j.logger.com.agilex.healthcare.schedulingmanager.datalayer.SchedulingDataLayerMdws=DEBUG, mhpSchedMDWS
log4j.logger.com.agilex.healthcare.schedulingmanager.datalayer.SMPatientDataLayerMdws=DEBUG, mhpSchedMDWS

log4j.logger.com.agilex.healthcare.schedulingmanager.datalayer.ToolsDataLayerMdws=INFO, mhpC
log4j.logger.com.agilex.healthcare.schedulingmanager.mdws.MdwsClinicSpecialtyHelper=INFO, mhpC
log4j.logger.com.agilex.healthcare.schedulingmanager.mdws.SpecialtyWithClinicTranslator=INFO, mhpC
log4j.logger.com.agilex.healthcare.schedulingmanager.datalayer.fork.ForkJoinTaskRunner=DEBUG, mhpC

#Scheduling fork/join
log4j.logger.com.agilex.healthcare.schedulingmanager.datalayer.fork=DEBUG, mhpC


log4j.appender.mhpSchedMDWS=org.apache.log4j.RollingFileAppender
log4j.appender.mhpSchedMDWS.File=/mhp/logging/mhp.mdws.sched.log
log4j.appender.mhpSchedMDWS.MaxFileSize=10MB
log4j.appender.mhpSchedMDWS.MaxBackupIndex=10
log4j.appender.mhpSchedMDWS.layout=org.apache.log4j.PatternLayout
log4j.appender.mhpSchedMDWS.Threshold=INFO
log4j.appender.mhpSchedMDWS.layout.ConversionPattern=[%d{MM-dd-yyyy HH:mm:ss,SSS}][%t][%-5p]%-100.100c: %m%n


# this defines the "C" (console) appender to be used with the root logger.  The "C" is an arbitrary name.  It specifies to send data to console (picked up by glassfish to send to its logger)
log4j.appender.mhpC=org.apache.log4j.ConsoleAppender
# info on layout pattern: http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html
log4j.appender.mhpC.layout=org.apache.log4j.PatternLayout
log4j.appender.mhpC.Threshold=DEBUG
log4j.appender.mhpC.layout.ConversionPattern=[%d{MM-dd-yyyy HH:mm:ss,SSS}][%t][%-5p]%-50.50c: %m%n

# this defines the "F" (file) appender to be used with the root logger.  The "F" is an arbitrary name.  It specifies to send data to log file
log4j.appender.mhpF=org.apache.log4j.RollingFileAppender
log4j.appender.mhpF.File=/mhp/logging/mhp.log
log4j.appender.mhpF.MaxFileSize=10MB
log4j.appender.mhpF.MaxBackupIndex=10
log4j.appender.mhpF.layout=org.apache.log4j.PatternLayout
log4j.appender.mhpF.Threshold=INFO
log4j.appender.mhpF.layout.ConversionPattern=[%d{MM-dd-yyyy HH:mm:ss,SSS}][%t][%-5p]%-50.50c: %m%n

# this defines the "FD" (file, debug) appender to be used with the root logger.  The "FD" is an arbitrary name.  It specifies to send debug data to log file
log4j.appender.mhpFD=org.apache.log4j.RollingFileAppender
log4j.appender.mhpFD.File=/mhp/logging/mhp.debug.log
log4j.appender.mhpFD.MaxFileSize=10MB
log4j.appender.mhpFD.MaxBackupIndex=10
log4j.appender.mhpFD.layout=org.apache.log4j.PatternLayout
log4j.appender.mhpFD.Threshold=ALL
log4j.appender.mhpFD.layout.ConversionPattern=[%d{MM-dd-yyyy HH:mm:ss,SSS}][%t][%-5p]%-100.100c: %m%n


# this defines the "FE" (file, error) appender to be used with the root logger.  The "FE" is an arbitrary name.  It specifies to send error data to log file
log4j.appender.mhpFE=org.apache.log4j.RollingFileAppender
log4j.appender.mhpFE.File=/mhp/logging/mhp.error.log
log4j.appender.mhpFE.MaxFileSize=10MB
log4j.appender.mhpFE.MaxBackupIndex=10
log4j.appender.mhpFE.layout=org.apache.log4j.PatternLayout
log4j.appender.mhpFE.Threshold=ERROR
log4j.appender.mhpFE.layout.ConversionPattern=[%d{MM-dd-yyyy HH:mm:ss,SSS}][%t][%-5p]%-100.100c: %m%n

# this defines the connection manager appender
log4j.appender.mhpCm=org.apache.log4j.RollingFileAppender
log4j.appender.mhpCm.File=/mhp/logging/mhp.connectionmanager.log
log4j.appender.mhpCm.MaxFileSize=10MB
log4j.appender.mhpCm.MaxBackupIndex=10
log4j.appender.mhpCm.layout=org.apache.log4j.PatternLayout
log4j.appender.mhpCm.Threshold=INFO
log4j.appender.mhpCm.layout.ConversionPattern=[%d{MM-dd-yyyy HH:mm:ss,SSS}][%t]: %m%n

log4j.appender.mhpCmD=org.apache.log4j.RollingFileAppender
log4j.appender.mhpCmD.File=/mhp/logging/mhp.connectionmanager.debug.log
log4j.appender.mhpCmD.MaxFileSize=10MB
log4j.appender.mhpCmD.MaxBackupIndex=10
log4j.appender.mhpCmD.layout=org.apache.log4j.PatternLayout
log4j.appender.mhpCmD.Threshold=ALL
log4j.appender.mhpCmD.layout.ConversionPattern=[%d{MM-dd-yyyy HH:mm:ss,SSS}][%t][%-5p]: %m%n

# this defines the timing appender
log4j.appender.mhpTiming=org.apache.log4j.RollingFileAppender
log4j.appender.mhpTiming.File=/mhp/logging/mhp.timings.xml
log4j.appender.mhpTiming.MaxFileSize=10MB
log4j.appender.mhpTiming.MaxBackupIndex=10000
log4j.appender.mhpTiming.layout=org.apache.log4j.xml.XMLLayout
log4j.appender.mhpTiming.Threshold=INFO
log4j.appender.mhpTiming.encoding=UTF-8
log4j.appender.mhpTiming.layout.ConversionPattern=[%d{MM-dd-yyyy HH:mm:ss,SSS}][%t]: %m%n

log4j.appender.mhpTimingDebug=org.apache.log4j.RollingFileAppender
log4j.appender.mhpTimingDebug.File=/mhp/logging/mhp.timings.debug.xml
log4j.appender.mhpTimingDebug.MaxFileSize=10MB
log4j.appender.mhpTimingDebug.MaxBackupIndex=10
log4j.appender.mhpTimingDebug.layout=org.apache.log4j.xml.XMLLayout
log4j.appender.mhpTimingDebug.Threshold=ALL
log4j.appender.mhpTimingDebug.encoding=UTF-8
log4j.appender.mhpTimingDebug.layout.ConversionPattern=[%d{MM-dd-yyyy HH:mm:ss,SSS}][%t]: %m%n

log4j.appender.mhpFeedback=org.apache.log4j.RollingFileAppender
log4j.appender.mhpFeedback.File=/mhp/logging/mhp.feedback.xml
log4j.appender.mhpFeedback.MaxFileSize=10MB
log4j.appender.mhpFeedback.MaxBackupIndex=10000
log4j.appender.mhpFeedback.layout=org.apache.log4j.xml.XMLLayout
log4j.appender.mhpFeedback.Threshold=INFO
log4j.appender.mhpFeedback.encoding=UTF-8
log4j.appender.mhpFeedback.layout.ConversionPattern=[%d{MM-dd-yyyy HH:mm:ss,SSS}][%t]: %m%n


# This defines the "RX" (file,error) appender to be used for logging Prescription Refill Errors Only.
# It is used exclusively by the MedicationRefillDataServe Logger
log4j.appender.mhpRX=org.apache.log4j.RollingFileAppender
log4j.appender.mhpRX.File=/mhp/logging/mhp.rx.error.log
log4j.appender.mhpRX.MaxFileSize=10MB
log4j.appender.mhpRX.MaxBackupIndex=10
log4j.appender.mhpRX.layout=org.apache.log4j.PatternLayout
log4j.appender.mhpRX.Threshold=ERROR
log4j.appender.mhpRX.layout.ConversionPattern=[%d{MM-dd-yyyy HH:mm:ss,SSS}][%t][%-5p]%-100.100c: %m%n

