Class CmsXRLogAdapter

  • All Implemented Interfaces:
    org.xhtmlrenderer.util.XRLogger

    public class CmsXRLogAdapter
    extends java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String OCMS_PREFIX
      The prefix used for log channels.
    • Constructor Summary

      Constructors 
      Constructor Description
      CmsXRLogAdapter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void log​(java.lang.String where, java.util.logging.Level level, java.lang.String msg)  
      void log​(java.lang.String where, java.util.logging.Level level, java.lang.String msg, java.lang.Throwable th)  
      void setLevel​(java.lang.String logger, java.util.logging.Level level)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • log

        public void log​(java.lang.String where,
                        java.util.logging.Level level,
                        java.lang.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​(java.lang.String where,
                        java.util.logging.Level level,
                        java.lang.String msg,
                        java.lang.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​(java.lang.String logger,
                             java.util.logging.Level level)
        Specified by:
        setLevel in interface org.xhtmlrenderer.util.XRLogger
        See Also:
        XRLogger.setLevel(java.lang.String, java.util.logging.Level)