Package com.zeroc.Ice
Class LoggerPlugin
java.lang.Object
com.zeroc.Ice.LoggerPlugin
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionLoggerPlugin
(Communicator communicator, Logger logger) Installs a custom logger for a communicator. -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Called by the Ice run time when the communicator is destroyed.void
Called by the Ice run time during communicator initialization.
-
Constructor Details
-
LoggerPlugin
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 interfacePlugin
-
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.
-