Skip to content

Log Levels – Configure Logging Verbosity

Log levels control the amount of detail written to log files. MideyeServer uses Logback’s standard log levels, ranging from most verbose (TRACE) to least verbose (ERROR).

Log Levels (in order of verbosity):

LevelPurposeTypical Use
TRACEExtremely detailed diagnostic informationDeep troubleshooting only
DEBUGDetailed information for debuggingDevelopment and troubleshooting
INFOGeneral informational messagesNormal operation monitoring
WARNWarning messages for potentially harmful situationsIdentify potential issues
ERRORError events that might still allow the app to continueCritical problems

When you set a logger to a specific level, it will log that level and all higher-severity levels. For example, setting a logger to INFO will log INFO, WARN, and ERROR messages, but not DEBUG or TRACE.


MideyeServer’s packaged configurations use these default log levels:

LoggerLevelCoverage
com.mideye.mideyeserverDEBUGAll MideyeServer application code
se.mideye.radiusWARNRADIUS protocol library
LoggerLevelNotes
org.springframeworkWARNSpring Framework core
org.springframework.webWARNSpring MVC and web layer
org.springframework.securityWARNSpring Security
org.hibernateWARNJPA/Hibernate ORM
org.hibernate.validatorWARNBean validation
liquibaseWARNDatabase migrations
org.apacheWARNApache libraries
io.undertowWARNEmbedded web server
com.zaxxerWARNHikariCP connection pool
LoggerLevelReason
org.hibernate.ejb.HibernatePersistenceOFFNoisy startup messages
org.apache.catalina.startup.DigesterFactoryOFFUnnecessary warnings
org.zalandoOFFProblem library

There are two ways to change log levels:

Use the web interface to change log levels at runtime without restarting MideyeServer. Changes are temporary and revert after a restart.

Access: Server Settings → Log Configuration

See the Log Configuration page for detailed instructions on using the web UI to adjust log levels and enable trace logging.


The root logger level controls the baseline logging level for all loggers not explicitly configured. MideyeServer uses different root logger levels for different appenders:

logback.xml (Linux example)
<!-- File appender (mideyeserver.log) logs INFO and higher -->
<root level="INFO">
<appender-ref ref="FILE"/>
</root>
<!-- Error file appender (mideyeserver.error) logs ERROR and higher -->
<root level="ERROR">
<appender-ref ref="FILE-ERROR"/>
</root>
<!-- Console (STDOUT) logs DEBUG and higher -->
<root level="DEBUG">
<appender-ref ref="STDOUT"/>
</root>

This configuration means:

  • The main log file gets INFO and higher messages
  • The error log gets ERROR messages only from com.mideye.* loggers (due to filter)
  • Console output gets DEBUG and higher messages

MideyeServer includes a built-in trace logging feature that creates a separate mideyeserver.trace file at the TRACE level for deep diagnostic troubleshooting.

Features:

  • Enabled via the web UI (Server Settings → Log Configuration)
  • Creates mideyeserver.trace in the same directory as other log files
  • Maximum file size: 100 MB
  • Very verbose output — use only for short-term debugging
  • Automatically disables after investigation

See Log Configuration → Trace Logging for details on enabling and using trace logs.


Enable DEBUG logging for the authentication service:

logback.xml
<logger name="com.mideye.mideyeserver.service.AuthenticationService" level="DEBUG"/>

Enable DEBUG logging for RADIUS components:

logback.xml
<logger name="se.mideye.radius" level="DEBUG"/>
<logger name="com.mideye.mideyeserver.service.core.radius" level="DEBUG"/>

Enable DEBUG logging for Hibernate SQL:

logback.xml
<logger name="org.hibernate.SQL" level="DEBUG"/>
<logger name="org.hibernate.type" level="TRACE"/>

Enable DEBUG logging for Spring Web:

logback.xml
<logger name="org.springframework.web" level="DEBUG"/>

If logs are too verbose in production, increase the MideyeServer log level to INFO or WARN:

logback.xml
<logger name="com.mideye.mideyeserver" level="INFO"/>

After editing logback.xml:

  1. Save the file — Logback will detect changes within 60 seconds
  2. Watch the log file — You should see a message indicating the configuration was reloaded:
    INFO [logback-scanner] ReconfigReloadingAction: Configuration reload triggered
  3. Verify new log level — New log messages should appear (or disappear) based on your changes

If changes don’t take effect:

  • Check for XML syntax errors in logback.xml
  • Look for error messages in the console output (STDOUT)
  • Verify the scan="true" attribute is present in the <configuration> tag
  • Restart MideyeServer if needed

  • Log Configuration: Runtime log level management via web UI
  • Overview: Logback configuration file locations and structure
  • Log Files: Web-based log viewer for reviewing log output