Class CmsXRLogAdapter

java.lang.Object
org.opencms.pdftools.CmsXRLogAdapter
All Implemented Interfaces:
org.xhtmlrenderer.util.XRLogger

public class CmsXRLogAdapter extends Object implements org.xhtmlrenderer.util.XRLogger
Adaspter for sending xhtmlrenderer (flyingsaucer) log messages to the OpenCms log.

The log channels to which the log messages are sent start with the prefix 'org.opencms.' so that no change in the log configuration is needed to make error messages appear in the log.

  • Field Details

  • Constructor Details

  • Method Details

    • log

      public void log(String where, Level level, String msg)
      Specified by:
      log in interface org.xhtmlrenderer.util.XRLogger
      See Also:
      • XRLogger.log(java.lang.String, java.util.logging.Level, java.lang.String)
    • log

      public void log(String where, Level level, String msg, Throwable th)
      Specified by:
      log in interface org.xhtmlrenderer.util.XRLogger
      See Also:
      • XRLogger.log(java.lang.String, java.util.logging.Level, java.lang.String, java.lang.Throwable)
    • setLevel

      public void setLevel(String logger, Level level)
      Specified by:
      setLevel in interface org.xhtmlrenderer.util.XRLogger
      See Also:
      • XRLogger.setLevel(java.lang.String, java.util.logging.Level)