How to I turn on logging for a class in sakai.properties

66 views
Skip to first unread message

Charles Severance

unread,
Jan 8, 2022, 9:25:46 AM1/8/22
to dev sakai
This is a silly question but I cannot figure it out. I want to set the logging level to debug for a class in my sakai.properties. This is what I tried and did not work.

org.slf4j.simpleLogger.log.org.sakaiproject.plus.ProviderServlet=DEBUG
log4j.logger.org.sakaiproject.plus.ProviderServlet=DEBUG

Thanks in advance.

/Chuck

David P. Bauer

unread,
Jan 8, 2022, 9:29:31 AM1/8/22
to Charles Severance, dev sakai
Hey Chuck,

Here's how I enable DEBUG logging level in sakai.properties not sure if this is the only way and it might not be the preferred way.

log.config.count=2
log.config.1 = DEBUG.org.sakaiproject.coursemanagement.impl.job.UDaytonCMSyncJob
log.config.2 = DEBUG.org.sakaiproject.coursemanagement.impl.job.UDaytonStudentSyncJob

David

--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/sakai-dev/8B8B4249-B10F-4955-A119-E6F53459E68D%40umich.edu.


--
David P. Bauer
Director, Online Learning Technology & Strategic Initiatives
Center for Online Learning, UDit
Roesch Library, LTC 034


Office:
(937) 229-2074
Support:
(937) 229-5039

University of Dayton
300 College Park, Dayton, OH 45469-1302

Sam Ottenhoff

unread,
Jan 8, 2022, 9:33:31 AM1/8/22
to David P. Bauer, Charles Severance, dev sakai
trunk DEBUG logging overrides are broken since the move to log4j2:


Matt had some good comments, but we probably need Earle to take a look.

--Sam

Charles Severance

unread,
Jan 8, 2022, 11:16:36 AM1/8/22
to dev sakai, David Bauer, Sam Ottenhoff
Ah - that is why the way I have always done it stopped working and I assumed I needed a newfangled property :)  

Back to the trusty System.out.println() for a while  - that never disappoints me :)

Thanks.

/Chuck
Reply all
Reply to author
Forward
0 new messages