Skip to content

The IServerInterceptorLogger interface enables service interceptors to write log messages to the ArcGIS Server log system. This is useful for monitoring, troubleshooting, and auditing custom interceptor logic.

Supported log levels

Service interceptors can log messages at various levels:

  • info(String)

  • debug(String)

  • warning(String)

  • severe(String)

  • log(Level, String) or log(Level, Exception)

These logs provide valuable insights into the interceptor's execution, helping to identify issues during development or runtime.

Use dark colors for code blocksCopy
1
2
3
logger.info("AuditLogInterceptor initialized with logLevel=INFO");
logger.warning("Request body is missing required parameter.");
logger.log(LogLevel.SEVERE, exception);

Viewing logs in ArcGIS Server Logs in ArcGIS Server

Logs written by service interceptors are integrated into the standard ArcGIS Server logging system and can be accessed through the Administrator Directory. In ArcGIS Server administrative directory, Navigate to Home > logs > query. In the results, logs that are generated by server interceptors will have a Target value of “Enterprise Interceptor”. This makes it easy for administrators to distinguish interceptor logs from other system logs.

Interceptor logs

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.