Class CmsGwtLog

java.lang.Object
org.opencms.gwt.shared.CmsGwtLog

public class CmsGwtLog extends Object
Dummy log that does nothing on the server side.

For the actual client side implementation, look in the super_src folder. We are doing this so that shared classes can use logging functions when run on the client.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    log(String mesage)
    Logs a message to the browser console if possible.
    static void
    trace(String message)
    Logs a message with the current stack trace to the browser console if possible.
    static void
    warn(String message)
    Logs a warning to the browser console if possible.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • log

      public static void log(String mesage)
      Logs a message to the browser console if possible.

      Parameters:
      message - the message to log
    • trace

      public static void trace(String message)
      Logs a message with the current stack trace to the browser console if possible.
      Parameters:
      message - the message to log
    • warn

      public static void warn(String message)
      Logs a warning to the browser console if possible.

      Parameters:
      message - the message to log