Package com.zeroc.Ice

Class LoggerPlugin

java.lang.Object
com.zeroc.Ice.LoggerPlugin
All Implemented Interfaces:
Plugin

public class LoggerPlugin extends Object implements Plugin
Class to support custom loggers. Applications using a custom logger instantiate a LoggerPlugin with a custom logger and return the instance from their PluginFactory implementation.
See Also:
  • Constructor Details

    • LoggerPlugin

      public LoggerPlugin(Communicator communicator, Logger logger)
      Installs a custom logger for a communicator.
      Parameters:
      communicator - The communicator using the custom logger.
      logger - The custom logger for the communicator.
  • Method Details

    • initialize

      public void initialize()
      Called by the Ice run time during communicator initialization. The derived class can override this method to perform any initialization that might be required by a custom logger.
      Specified by:
      initialize in interface Plugin
    • destroy

      public void destroy()
      Called by the Ice run time when the communicator is destroyed. The derived class can override this method to perform any finalization that might be required by a custom logger.
      Specified by:
      destroy in interface Plugin