Package com.swiftmq.impl.log.standard
Class LogSwiftletImpl
java.lang.Object
LogSwiftlet
com.swiftmq.impl.log.standard.LogSwiftletImpl
public class LogSwiftletImpl
extends LogSwiftlet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionLogSink
void
Log an error messagevoid
logInformation
(String source, String message) Log an information messagevoid
logWarning
(String source, String message) Log a warning messageprotected void
shutdown()
Shutdown the swiftlet.protected void
startup
(Configuration config) Startup the swiftlet.
-
Constructor Details
-
LogSwiftletImpl
public LogSwiftletImpl()
-
-
Method Details
-
logInformation
Log an information message- Parameters:
source
- usually the swiftlet namemessage
- the message to log
-
logWarning
Log a warning message- Parameters:
source
- usually the swiftlet namemessage
- the message to log
-
logError
Log an error message- Parameters:
source
- usually the swiftlet namemessage
- the message to log
-
createLogSink
-
startup
protected void startup(Configuration config) throws SwiftletException Startup the swiftlet. Check if all required properties are defined and all other startup conditions are met. Do startup work (i. e. start working thread, get/open resources). If any condition prevends from startup fire a SwiftletException.- Throws:
com.swiftmq.swiftlet.SwiftletException
SwiftletException
-
shutdown
protected void shutdown() throws SwiftletExceptionShutdown the swiftlet. Check if all shutdown conditions are met. Do shutdown work (i. e. stop working thread, close resources). If any condition prevends from shutdown fire a SwiftletException.- Throws:
com.swiftmq.swiftlet.SwiftletException
SwiftletException
-