Has anyone used granular DHIS2 log levels?

In the DHIS2 Installation documentation, it talks about how you can set the log level of packages inside DHIS2 using dhis.conf:

The example given is to set the log level to DEBUG for all DHIS2 components, you can specify:
logging.level.org.hisp.dhis = DEBUG

However, a little bird pointed out to me that the log level configuration can be much more granular than is presented there.

For example, you can set:
logging.level.org.hisp.dhis.security = DEBUG

or even:
logging.level.org.hisp.dhis.security.apikey = DEBUG

Has anyone out there used these? It seems like not all of them actually do anything. Which are the ones you have found the most useful? I’d like to add a few additional examples to the manual.

This appears to be many of the things that can be logged:

  • logging.level.org.hisp.dhis.analytics
  • logging.level.org.hisp.dhis.analytics.common
  • logging.level.org.hisp.dhis.appmanager
  • logging.level.org.hisp.dhis.appmanager.webmodules
  • logging.level.org.hisp.dhis.attribute
  • logging.level.org.hisp.dhis.attribute.comparator
  • logging.level.org.hisp.dhis.attribute.exception
  • logging.level.org.hisp.dhis.audit
  • logging.level.org.hisp.dhis.audit.payloads
  • logging.level.org.hisp.dhis.cache
  • logging.level.org.hisp.dhis.calendar
  • logging.level.org.hisp.dhis.calendar.exception
  • logging.level.org.hisp.dhis.calendar.impl
  • logging.level.org.hisp.dhis.category
  • logging.level.org.hisp.dhis.category.comparator
  • logging.level.org.hisp.dhis.common
  • logging.level.org.hisp.dhis.common.adapter
  • logging.level.org.hisp.dhis.common.auth
  • logging.level.org.hisp.dhis.common.cache
  • logging.level.org.hisp.dhis.common.comparator
  • logging.level.org.hisp.dhis.common.coordinate
  • logging.level.org.hisp.dhis.common.event
  • logging.level.org.hisp.dhis.common.exception
  • logging.level.org.hisp.dhis.configuration
  • logging.level.org.hisp.dhis.constant
  • logging.level.org.hisp.dhis.dashboard
  • logging.level.org.hisp.dhis.dashboard.design
  • logging.level.org.hisp.dhis.dataanalysis
  • logging.level.org.hisp.dhis.dataapproval
  • logging.level.org.hisp.dhis.dataapproval.exceptions
  • logging.level.org.hisp.dhis.databrowser
  • logging.level.org.hisp.dhis.datacompletion
  • logging.level.org.hisp.dhis.dataelement
  • logging.level.org.hisp.dhis.dataentryform
  • logging.level.org.hisp.dhis.dataexchange.aggregate
  • logging.level.org.hisp.dhis.dataintegrity
  • logging.level.org.hisp.dhis.dataitem
  • logging.level.org.hisp.dhis.dataset
  • logging.level.org.hisp.dhis.dataset.comparator
  • logging.level.org.hisp.dhis.dataset.notifications
  • logging.level.org.hisp.dhis.datastatistics
  • logging.level.org.hisp.dhis.datastore
  • logging.level.org.hisp.dhis.datavalue
  • logging.level.org.hisp.dhis.dbms
  • logging.level.org.hisp.dhis.deduplication
  • logging.level.org.hisp.dhis.deletedobject
  • logging.level.org.hisp.dhis.document
  • logging.level.org.hisp.dhis.dxf2.common
  • logging.level.org.hisp.dhis.dxf2.csv
  • logging.level.org.hisp.dhis.dxf2.metadata
  • logging.level.org.hisp.dhis.dxf2.metadata.feedback
  • logging.level.org.hisp.dhis.dxf2.metadata.objectbundle
  • logging.level.org.hisp.dhis.email
  • logging.level.org.hisp.dhis.encryption
  • logging.level.org.hisp.dhis.event
  • logging.level.org.hisp.dhis.eventchart
  • logging.level.org.hisp.dhis.eventdatavalue
  • logging.level.org.hisp.dhis.eventhook
  • logging.level.org.hisp.dhis.eventhook.targets
  • logging.level.org.hisp.dhis.eventreport
  • logging.level.org.hisp.dhis.eventvisualization
  • logging.level.org.hisp.dhis.expression
  • logging.level.org.hisp.dhis.expressiondimensionitem
  • logging.level.org.hisp.dhis.external.configuration
  • logging.level.org.hisp.dhis.external.location
  • logging.level.org.hisp.dhis.feedback
  • logging.level.org.hisp.dhis.fileresource
  • logging.level.org.hisp.dhis.fileresource.events
  • logging.level.org.hisp.dhis.hibernate
  • logging.level.org.hisp.dhis.hierarchy
  • logging.level.org.hisp.dhis.i18n
  • logging.level.org.hisp.dhis.i18n.locale
  • logging.level.org.hisp.dhis.icon
  • logging.level.org.hisp.dhis.importexport
  • logging.level.org.hisp.dhis.indicator
  • logging.level.org.hisp.dhis.interpretation
  • logging.level.org.hisp.dhis.legend
  • logging.level.org.hisp.dhis.legend.comparator
  • logging.level.org.hisp.dhis.maintenance
  • logging.level.org.hisp.dhis.mapgeneration
  • logging.level.org.hisp.dhis.mapping
  • logging.level.org.hisp.dhis.message
  • logging.level.org.hisp.dhis.metadata.version
  • logging.level.org.hisp.dhis.minmax
  • logging.level.org.hisp.dhis.note
  • logging.level.org.hisp.dhis.notification
  • logging.level.org.hisp.dhis.notification.logging
  • logging.level.org.hisp.dhis.option
  • logging.level.org.hisp.dhis.organisationunit
  • logging.level.org.hisp.dhis.organisationunit.comparator
  • logging.level.org.hisp.dhis.outboundmessage
  • logging.level.org.hisp.dhis.patch
  • logging.level.org.hisp.dhis.period
  • logging.level.org.hisp.dhis.period.comparator
  • logging.level.org.hisp.dhis.predictor
  • logging.level.org.hisp.dhis.preheat
  • logging.level.org.hisp.dhis.program
  • logging.level.org.hisp.dhis.program.comparator
  • logging.level.org.hisp.dhis.program.message
  • logging.level.org.hisp.dhis.program.notification
  • logging.level.org.hisp.dhis.program.notification.template.snapshot
  • logging.level.org.hisp.dhis.programrule
  • logging.level.org.hisp.dhis.programrule.engine
  • logging.level.org.hisp.dhis.programstagefilter
  • logging.level.org.hisp.dhis.programstageworkinglist
  • logging.level.org.hisp.dhis.pushanalysis
  • logging.level.org.hisp.dhis.relationship
  • logging.level.org.hisp.dhis.render
  • logging.level.org.hisp.dhis.render.type
  • logging.level.org.hisp.dhis.report
  • logging.level.org.hisp.dhis.reservedvalue
  • logging.level.org.hisp.dhis.resourcetable
  • logging.level.org.hisp.dhis.route
  • logging.level.org.hisp.dhis.scheduling
  • logging.level.org.hisp.dhis.scheduling.parameters
  • logging.level.org.hisp.dhis.schema
  • logging.level.org.hisp.dhis.schema.annotation
  • logging.level.org.hisp.dhis.schema.transformer
  • logging.level.org.hisp.dhis.security
  • logging.level.org.hisp.dhis.security.acl
  • logging.level.org.hisp.dhis.security.apikey
  • logging.level.org.hisp.dhis.security.utils
  • logging.level.org.hisp.dhis.setting
  • logging.level.org.hisp.dhis.sharing
  • logging.level.org.hisp.dhis.sms.command
  • logging.level.org.hisp.dhis.sms.command.code
  • logging.level.org.hisp.dhis.sms.config
  • logging.level.org.hisp.dhis.sms.config.views
  • logging.level.org.hisp.dhis.sms.incoming
  • logging.level.org.hisp.dhis.sms.outbound
  • logging.level.org.hisp.dhis.sms.parse
  • logging.level.org.hisp.dhis.sqlview
  • logging.level.org.hisp.dhis.subexpression
  • logging.level.org.hisp.dhis.system.notification
  • logging.level.org.hisp.dhis.textpattern
  • logging.level.org.hisp.dhis.trackedentity
  • logging.level.org.hisp.dhis.trackedentityattributevalue
  • logging.level.org.hisp.dhis.trackedentity.comparator
  • logging.level.org.hisp.dhis.trackedentitydatavalue
  • logging.level.org.hisp.dhis.trackedentityfilter
  • logging.level.org.hisp.dhis.translation
  • logging.level.org.hisp.dhis.user
  • logging.level.org.hisp.dhis.user.comparator
  • logging.level.org.hisp.dhis.userdatastore
  • logging.level.org.hisp.dhis.user.sharing
  • logging.level.org.hisp.dhis.util
  • logging.level.org.hisp.dhis.validation
  • logging.level.org.hisp.dhis.validation.comparator
  • logging.level.org.hisp.dhis.validation.notification
  • logging.level.org.hisp.dhis.version
  • logging.level.org.hisp.dhis.visualization
  • logging.level.org.hisp.dhis.webapi.controller.event.mapper
  • logging.level.org.hisp.dhis.webapi.controller.event.webrequest
1 Like

Very interesting! Thank you for sharing…

2 Likes

Just checking—sounds like maybe no one has used the granular logging?

Let me know. Thanks!

1 Like