Uploaded image for project: 'Apache Unomi'
  1. Apache Unomi
  2. UNOMI-796

Add log4j conf + env variable to set SchemaService log level

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • unomi-2.4.0
    • None
    • None

    Description

      The idea is to be able to configure easily the LOG LEVEL of package: 
      org.apache.unomi.schema.impl
       
      In case people experience trouble with schema validation, it would be require to switch this log to DEBUG to have real informations.
       
      the file to modify is: https://github.com/apache/unomi/blob/master/package/src/main/resources/etc/org.ops4j.pax.logging.cfg
       
      Like for cxf example in same file:

      log4j2.logger.cxfInterceptor.name = org.apache.cxf.interceptor
      log4j2.logger.cxfInterceptor.level = ${org.apache.unomi.logs.cxf.level:-WARN} 

      associated to env (custom.system.properties): 

      org.apache.unomi.logs.cxf.level=${env:UNOMI_LOGS_CXF_LEVEL:-WARN} 

       
      Do something like this:

      log4j2.logger.jsonSchema.name = org.apache.unomi.schema.impl 
      log4j2.logger.jsonSchema.level = ${org.apache.unomi.logs.jsonschema.level:-INFO} 

      to be associated env variable (custom.system.properties): 

      org.apache.unomi.logs.jsonschema.level=${env:UNOMI_LOGS_JSONSCHEMA_LEVEL:-INFO} 

      Attachments

        Activity

          People

            dgriffon David Griffon
            jkevan Kevan Jahanshahi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: