# # An example log4j configuration file that outputs both to System.out # and a file named 'org.apache.ojb.log'. # For the general syntax of property based configuration files see the # documenation of org.apache.log4j.PropertyConfigurator. # WARNING: Location information can be useful but is very costly in # terms of computation. # The root category uses the appenders called A1 and A2. Since no # priority is set, the root category assumes the default which is # DEBUG log4j.rootCategory=WARN, A1 # Configure the individual component logging like this: # log4j.logger.org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl=INFO #log4j.logger.org.apache.ojb.broker.metadata.RepositoryXmlHandler=DEBUG #log4j.logger.org.apache.ojb.broker.accesslayer.ConnectionManager=INFO #log4j.logger.org.apache.ojb.odmg=INFO log4j.logger.org.apache.slide.store.ojb=INFO log4j.logger.org.apache.slide.store.ojb.property=INFO # A1 is set to be ConsoleAppender sending its output to System.out log4j.appender.A1=org.apache.log4j.ConsoleAppender # A1 uses PatternLayout. log4j.appender.A1.layout=org.apache.log4j.PatternLayout # The conversion pattern consists of date in ISO8601 format, priority, # thread name, category name truncated to its rightmost two components # and left justified to 17 characters, location information consisting # of file name (padded to 13 characters) and line number, nested # diagnostic context, the and the application supplied message #log4j.appender.A1.layout.ConversionPattern=%-6r %-5p [%t] %-17c{2} (%13F:%L) %3x - %m%n # use a simpler output format log4j.appender.A1.layout.ConversionPattern=%-5r %-5p [%t] %c{1} - %m%n # Appender A2 writes to the file "org.apache.ojb.log". log4j.appender.A2=org.apache.log4j.FileAppender log4j.appender.A2.File=org.apache.ojb.log # Truncate 'test' if it aleady exists. log4j.appender.A2.Append=false # Appender A2 uses the PatternLayout. log4j.appender.A2.layout=org.apache.log4j.PatternLayout log4j.appender.A2.layout.ConversionPattern=%-5r %-5p [%t] %c{2} - %m%n