Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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}