# $Id$ # # ======================================================= # log4j logging configuration for deegree # ======================================================= # # This file contains the log4j logging configuration for deegree. # This file should be placed in the classes/ directory # (WEB-INF/classes/, etc.). # # The first part of the file sets the default log levels. The second # part configures the output format and destination (console, log file, etc.) # The last part is only for detailed debuging. # # For the general syntax of property based configuration files see the # documenation of org.apache.log4j.PropertyConfigurator. # The root category uses the appender called deegree. Since no priority is # specified, the root category assumes the default priority for root # which is DEBUG in log4j. The root category is the only category that # has a default priority. All other categories need not be assigned a # priority in which case they inherit their priority from the # hierarchy. # default log levels # 'DEBUG' (most messages) # 'INFO' # 'WARN' # 'ERROR' (only error messages) # first argument: root log level # remaining arguments: appenders # -> log everything to logfile and stdout (console) log4j.rootLogger=INFO, stdout # Log4j allows logging requests to print to multiple destinations. # In log4j speak, an output destination is called an appender. # For configuration of the appenders see end of this file. # ======================================================= # default log levels # ======================================================= # # ================== common logging ===================== # default log level for deegree log4j.logger.org.deegree=INFO # ======================================================= # === log output configuration === # ======================================================= # # The logging format is defined in .layout.ConversionPattern. The format is described in # http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html # The org.deegree.coordcalc.log.Log4jPatternLayout adds the following conversion characters: # h: hostname or IP address # P: first character of the log level (eg. D for debug) # m: log message plus exception stack trace (if applicable), all in _one_ line. # also all semicolons will be replaced by `|' so the log can be parsed as # semicolon separated values (like CSV) # M: method name of the original caller (this pattern is rather expensive and # works only for calls to deegree logXXX methods) # The ConversionPattern <%d{dd.MM.yyyy HH:mm:ss}>;<%h>;<%c>;;<%M>;;<%P>;<%m>%n # logs all messages in a CSV format, with semicolons as delimiter. All fields enclosed in # angle brackets (<>) as well. The fields are: # Date and time, host name, package and class name, empty field, method name, # empty field, log level, log message. # Followed by a line break (%n). # ======================================================= # Console Output Appender # ======================================================= # Logs all messages to the console. log4j.appender.stdout=org.apache.log4j.ConsoleAppender # standard deegree log format log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %5p: [%c{1}] %m%n # ======================================================= # output directory for all logfiles # ======================================================= #log.dir=${user.home} # ======================================================= # 'deegree.log' file appender # ======================================================= # Logs all messages in a file. If the log file exceeds MaxFileSize # a new log file will be created. The RollingFileAppender keeps backups # of the old logs. Change MaxBackupIndex to configure how many backup files # to keep. log4j.appender.logfile=org.apache.log4j.RollingFileAppender #log4j.appender.logfile.File=${log.dir}/deegree.log log4j.appender.logfile.MaxFileSize=1000KB # Keep one backup file log4j.appender.logfile.MaxBackupIndex=1 log4j.appender.logfile.layout=org.apache.log4j.PatternLayout log4j.appender.logfile.layout.ConversionPattern=%d %-5p [%c] %m%n # Example for a appender that creates a new log file every day (at midnight). # see http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/DailyRollingFileAppender.html #log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender #log4j.appender.logfile.DatePattern='.'yyyy-MM-dd # ======================================================= # 'access.log' file appender # ======================================================= # Logs all transformations in a file. The deegree GeoTransformer uses an extra logger # for this named org.deegree.model.crs.GeoTransformer.TransformLogger. # See comment above for RollingFileAppender configuration. log4j.logger.org.deegree.model.crs.GeoTransformer.TransformLogger=ERROR, transf log4j.additivity.org.deegree.model.crs.GeoTransformer.TransformLogger=false log4j.appender.transf=org.apache.log4j.RollingFileAppender #log4j.appender.transf.File=${log.dir}/access.log log4j.appender.transf.MaxFileSize=1000KB log4j.appender.transf.layout=org.apache.log4j.PatternLayout # Keep one backup file log4j.appender.transf.MaxBackupIndex=1 #log4j.appender.transf.layout=org.deegree.coordcalc.log.Log4jPatternLayout log4j.appender.transf.layout.ConversionPattern=%d{yyyyMMdd;HH:mm:ss};%m%n # ======== end of general logging configuration =============== # ======================================================= # log levels for individual packages and their children # ======================================================= # The rest of the file contains logging configuration for important classes. # Uncomment the appropriate lines for detailed DEBUG information. # the most precise entry for a package determines the effective log level # to log processing time for web-received requests (for all services) #log4j.logger.org.deegree.enterprise.servlet.OGCServletController=DEBUG # ================== CRS specific logging ===================== #Information about the deegree interface to the crs package #log4j.logger.org.deegree.model.crs=DEBUG #log the deegree CRSprovider #log4j.logger.org.deegree.crs.configuration.DeegreeCRSProvider=DEBUG #log the CRSConfiguration. #log4j.logger.org.deegree.crs.configuration.CRSConfiguration=DEBUG #log4j.logger.org.deegree.model.crs.CRSFactory=DEBUG #log the transformation factory #log4j.logger.org.deegree.crs.transformations.TransformationFactory=DEBUG #Information about the incoming and outgoing points of a tmerc projection #log4j.logger.org.deegree.crs.projections.cylindric.TransverseMercator=DEBUG # ================== WCTS specific logging ===================== # to log request which are actually handled #log4j.logger.org.deegree.enterprise.servlet.WCTSHandler=DEBUG # to log the wcts as a whole #log4j.logger.org.deegree.ogcwebservices.wcts=DEBUG #log4j.logger.org.deegree.enterprise.servlet=DEBUG #log4j.logger.org.deegree.ogcwebservices.OGCRequestFactory=DEBUG #log4j.logger.org.deegree.enterprise.servlet.SOAP_1_1_FacadeServletFilter=DEBUG # ================ datastore specific logging ============== # to log the SQL statements as they are "prepared", i.e. converted to PreparedStatements #log4j.logger.org.deegree.io.datastore.sql.AbstractSQLDatastore=DEBUG # to log SQL statements generated for GetFeature-requests #log4j.logger.org.deegree.io.datastore.sql.FeatureFetcher=DEBUG #log4j.logger.org.deegree.io.datastore.sql.QueryHandler=DEBUG # to log backend-specific stuff #log4j.logger.org.deegree.io.datastore.sql.oracle.OracleDatastore=DEBUG #log4j.logger.org.deegree.io.datastore.sql.postgis.PostGISDatastore=DEBUG #log4j.logger.org.deegree.io.datastore.sql.generic.GenericSQLDatastore=DEBUG #log4j.logger.org.deegree.io.datastore.shape.ShapeDatastore=DEBUG # to log SQL statements and internal behaviour for transactions #log4j.logger.org.deegree.io.datastore.sql.transaction.SQLTransaction=DEBUG #log4j.logger.org.deegree.io.datastore.sql.transaction.UpdateHandler=DEBUG #log4j.logger.org.deegree.io.datastore.sql.transaction.delete.DeleteHandler=DEBUG #log4j.logger.org.deegree.io.datastore.sql.transaction.insert.InsertHandler=DEBUG # to log identification of "equal" features on Insert + assignment of new FeatureIds #log4j.logger.org.deegree.io.datastore.idgenerator.FeatureIdAssigner=DEBUG # to activate validation of incoming geometries (reject invalid geometries on insert) #log4j.logger.org.deegree.model.feature.Validator=DEBUG # to log normalization results #log4j.logger.org.deegree.model.filterencoding.FunctionNormalize=DEBUG