#ArchiveSystem HIB Runtime Messagelog4j.logger.org.hibernate=DEBUG,HBIE,HBIW,HBIIF,HBID#-------------------------------------------------------------log4j.appender.HBIE.Append=truelog4j.appender.HBIE.Threshold=ERRORlog4j.appender.HBIE=org.apache.log4j.DailyRollingFileAppender log4j.appender.HBIE.DatePattern='.'yyyy-MM-ddlog4j.appender.HBIE.layout=org.apache.log4j.PatternLayoutlog4j.appender.HBIE.layout.ConversionPattern=%-4r %-5p %d{yyyy-MM-dd HH\:mm\:ssS} %c %m%n log4j.appender.HBIE.File=${webApp.root}/logs/ArchiveHBTError.loglog4j.appender.HBIW.Append=truelog4j.appender.HBIW.Threshold=WARNlog4j.appender.HBIW=org.apache.log4j.DailyRollingFileAppender log4j.appender.HBIW.DatePattern='.'yyyy-MM-ddlog4j.appender.HBIW.layout=org.apache.log4j.PatternLayoutlog4j.appender.HBIW.layout.ConversionPattern=%-4r %-5p %d{yyyy-MM-dd HH\:mm\:ssS} %c %m%n log4j.appender.HBIW.File=${webApp.root}/logs/ArchiveHBTWarn.loglog4j.appender.HBIIF.Append=truelog4j.appender.HBIIF.Threshold=INFOlog4j.appender.HBIIF=org.apache.log4j.DailyRollingFileAppender log4j.appender.HBIIF.DatePattern='.'yyyy-MM-ddlog4j.appender.HBIIF.layout=org.apache.log4j.PatternLayoutlog4j.appender.HBIIF.layout.ConversionPattern=%-4r %-5p %d{yyyy-MM-dd HH\:mm\:ssS} %c %m%n log4j.appender.HBIIF.File=${webApp.root}/logs/ArchiveHBTInfo.loglog4j.appender.HBID.Threshold=DEBUGlog4j.appender.HBID=org.apache.log4j.DailyRollingFileAppender log4j.appender.HBID.Append=truelog4j.appender.HBID.DatePattern='.'yyyy-MM-ddlog4j.appender.HBID.layout=org.apache.log4j.PatternLayoutlog4j.appender.HBID.layout.ConversionPattern=%-4r %-5p %d{yyyy-MM-dd HH\:mm\:ssS} %c %m%n log4j.appender.HBID.File=${webApp.root}/logs/ArchiveHBTDebug.log#-------------------------------------------------------------#Archive System Runtime Message#-------------------------------------------------------------log4j.rootLogger=DEBUG,A1,MAIL#-------------------------------------------------------------#Archive System Message MAIL To Mangers#-------------------------------------------------------------log4j.appender.MAIL=com.court.ToolFactory.Log4jInfoMailtoUserslog4j.appender.MAIL.Threshold=WARNlog4j.appender.MAIL.From=test@sina.comlog4j.appender.MAIL.To=test@sina.comlog4j.appender.MAIL.SMTPHost=smtp.sina.comlog4j.appender.MAIL.SMTPAuth=truelog4j.appender.MAIL.SMTPUsername=usernamelog4j.appender.MAIL.SMTPPassword=passwordlog4j.appender.MAIL.Subject=ArchiveSys Messagelog4j.appender.MAIL.layout=org.apache.log4j.PatternLayoutlog4j.appender.MAIL.layout.ConversionPattern=[framework]%-4r %-5p %d{yyyy-MM-dd HH\:mm\:ssS} %c %m%nlog4j.appender.A1.Threshold=DEBUG;log4j.appender.A1.Append=falselog4j.appender.A1=org.apache.log4j.DailyRollingFileAppenderlog4j.appender.A1.DatePattern='.'yyyy-MM-ddlog4j.appender.A1.layout=org.apache.log4j.PatternLayoutlog4j.appender.A1.layout.ConversionPattern=%-4r %-5p %d{yyyy-MM-dd HH\:mm\:ssS} %c %m%nlog4j.appender.A1.file =${webApp.root}/logs/ArchiveSysInfo.log#-------------------------------------------------------------#ArchiveSystem ROLLING_FILE Message#-------------------------------------------------------------log4j.appender.ROLLING_FILE=org.apache.log4j.RollingFileAppenderlog4j.appender.ROLLING_FILE.Threshold=errorlog4j.appender.ROLLING_FILE.File=${webApp.root}/logs/ArchiveSytemRolling.loglog4j.appender.ROLLING_FILE.Append=truelog4j.appender.ROLLING_FILE.MaxFileSize=10KBlog4j.appender.ROLLING_FILE.MaxBackupIndex=1log4j.appender.ROLLING_FILE.layout=org.apache.log4j.PatternLayoutlog4j.appender.ROLLING_FILE.layout.ConversionPattern=[framework] %d - %c -%-4r [%t] %-5p %c %x - %m%n#----------------------------------------------------------------#On Users Login In SaveToDB#----------------------------------------------------------------log4j.logger.com.court.Action.LoginAction=info,DATABASElog4j.appender.DATABASE=org.apache.log4j.jdbc.JDBCAppenderlog4j.appender.DATABASE.URL=jdbc:microsoft:sqlserver://localhost:1433;DataBaseName=yourDBlog4j.appender.DATABASE.driver=com.microsoft.jdbc.sqlserver.SQLServerDriverlog4j.appender.DATABASE.user=salog4j.appender.DATABASE.password=123log4j.appender.DATABASE.sql=INSERT INTO UsersLogs(Message) VALUES ('%m')log4j.appender.DATABASE.layout=org.apache.log4j.PatternLayoutlog4j.appender.DATABASE.layout.ConversionPattern=%m