Class LoggerUtil.LUPermission

java.lang.Object
java.security.Permission
org.omegazero.common.logging.LoggerUtil.LUPermission
All Implemented Interfaces:
Serializable, Guard
Enclosing class:
LoggerUtil

public static class LoggerUtil.LUPermission extends Permission implements Serializable
Represents a permission checked by the security manager when an operation is performed that changes the logging state.

The following permissions are checked:

nameactionattachmentChecked by
settingsinitLoggerUtil.init(LogLevel, String)
settingscloseLoggerUtil.close()
settingssetSyncFlushThe new boolean valueLoggerUtil.setSyncFlush(boolean)
settingssetLogLevelThe new LogLevelLoggerUtil.setLogLevel(LogLevel)
ioredirectStdLoggerUtil.redirectStandardOutputStreams()
iouseStderrThe new boolean valueLoggerUtil.setUseStderr(boolean)
logListeneraddRegularLoggerUtil.addLogListener(BiConsumer)
logListeneraddFineLoggerUtil.addFineLogListener(BiConsumer)
loggercreateFull class name of the loggerLoggerUtil.createLogger()
loggermuteFull class name of the loggerLoggerUtil.muteLogger(String)
loggerunmuteFull class name of the loggerLoggerUtil.unmuteLogger(String)
loggerOutputaddThe instanceLoggerUtil.addLoggerOutput(LoggerOutput)
loggerOutputremoveThe instanceLoggerUtil#removeLoggerOutput(String)

All permissions are an instance of this class. name is the string returned by Permission.getName(), action is a string returned by getActions(), attachment any object involved in the checked operation returned by getAttachment().

Since:
2.5
See Also: