public interface IMngSoftware
Software manager service. At least it should manage "is show debug messages" for Logger. Of course it should be able to instantiate and replace any working service in application factory. It should be able to change other settings (e.g. view descriptor) initialized from XML.
| Modifier and Type | Method and Description |
|---|---|
int |
getDetailLevel()
Get preferred detail level, e.g.
|
boolean |
getIsShowDebugMessages()
Get is show debug messages.
|
boolean |
getIsShowDebugMessages(Class<?> pClazz)
Get is show debug messages for this class.
|
void |
setDetailLevel(int pDetailLevel)
Set preferred detail level.
|
void |
setIsShowDebugMessages(boolean pIsShowDebugMessage)
Set is show debug messages.
|
void |
setIsShowDebugMessages(Class<?> pClazz,
boolean pIsShowDebugMessage)
Set is show debug messages for this class.
|
void setIsShowDebugMessages(boolean pIsShowDebugMessage)
throws Exception
Set is show debug messages.
pIsShowDebugMessage - is show debug messages?Exception - - an exceptionboolean getIsShowDebugMessages()
throws Exception
Get is show debug messages.
Exception - - an exceptionvoid setIsShowDebugMessages(Class<?> pClazz, boolean pIsShowDebugMessage) throws Exception
Set is show debug messages for this class.
pClazz - of beanpIsShowDebugMessage - is show debug messages?Exception - - an exceptionboolean getIsShowDebugMessages(Class<?> pClazz) throws Exception
Get is show debug messages for this class.
pClazz - of beanException - - an exceptionint getDetailLevel()
throws Exception
Get preferred detail level, e.g. for suppress unwanted debug messages for deep level #3:
if (this.logger.getIsShowDebugMessagesFor(this.getClass())
&& this.logger.getDetailLevel() >= 3) {
... 3-d detail level message
}
Exception - - an exceptionCopyright © 2016–2018. All rights reserved.