Class SimpleLogSource
java.lang.Object
org.jpos.util.SimpleLogSource
- All Implemented Interfaces:
LogSource
- Direct Known Subclasses:
BSHTransactionParticipant, DirPoll, GenericSSLSocketFactory, VISA1Packager
LogSources can choose to extends this SimpleLogSource
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SimpleLogSource(Logger logger, String realm) Constructs a SimpleLogSource with the given logger and realm. -
Method Summary
Modifier and TypeMethodDescriptionvoidLogs an error message.voidLogs an error message with an attached object.Returns the logger.getRealm()Returns the logging realm.voidLogs an informational message.voidLogs an informational message with an attached object.voidSets the logger and realm for this log source.voidSets the logging realm.voidLogs a warning message.voidLogs a warning message with an attached object.
-
Field Details
-
logger
-
realm
-
-
Constructor Details
-
SimpleLogSource
public SimpleLogSource()Default constructor. -
SimpleLogSource
Constructs a SimpleLogSource with the given logger and realm.- Parameters:
logger- the logger to userealm- the logging realm
-
-
Method Details
-
setLogger
-
getRealm
-
getLogger
-
setRealm
-
info
-
info
-
warning
-
warning
-
error
-
error
-