Why won't a module write errors to the logs?

Dear all,

I am working on module radiologydcm4chee and cannot see any log entries written into catalina.out/openmrs.log by the module.

For example in the modules Activator class, logging is set up as follows:

import org.apache.commons.logging.Log;

public class RadiologyActivator extends BaseModuleActivator {
private static final Log log = LogFactory.getLog(RadiologyActivator.class);

I deployed the module in openmrs 1.9.7 and the logging is set to level info.

But I can never write to the log with for example:

log.info("Started MPPSScu : OpenMRS MPPS SCU Client (dcmof)");

The module also uses another logger


Could this be an issue? Could you please give me a hint on how to fix this.

Thanks a lot!!

1 Like

Found it.

To spare everyone else the trouble and humiliation, its very simple :grin:

I could not see any log messages from the radiology module since its log level was not specified.

My OpenMRS log settings where:

Settings --> Log, Log Level = “info”

which only sets the api’s log level. To define a log level for the radiology module I had to add:

org.openmrs.api:info, org.openmrs.module.radiology:debug


Hi, Can anyone tell me where is this settings? where can i add this ‘org.openmrs.module.radiology:debug’ module specific log?

I am trying to get the logs of appointent-schedule module.

Hi @tonmoy,

org.openmrs.module.radiology is the package of the radiology module. You might need org.openmrs.module.appointmentscheduling if this is the module GitHub - openmrs/openmrs-module-appointmentscheduling: Module for scheduling patient appointments you are trying to see the logs from.

I was able to set it in the admin section of the legacy UI back then.

What UI are you using? There might also be a way to set the configuration without a UI. I would need to research a little more to find that. If someone else knows it right away, please tell us :grinning_face_with_smiling_eyes:

Are you looking for this? Login

1 Like

yes :slight_smile:

Is there also a way to set the log level without a UI?