java.util.logging
17 classes of the module java.logging.
Load them with:
using {
"java.util.logging"
}
ConsoleHandler#
class · extends StreamHandler · java.util.logging.ConsoleHandler
Constructors
new ConsoleHandler() |
Ring: new ConsoleHandler(args) uses the constructor with the fewest parameters (at least one); new ConsoleHandler makes the object with the constructor without parameters; the others: (new ConsoleHandler).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of StreamHandler are inherited.
ErrorManager#
class · extends Object · java.util.logging.ErrorManager
Constructors
new ErrorManager() |
Ring: new ErrorManager(args) uses the constructor with the fewest parameters (at least one); new ErrorManager makes the object with the constructor without parameters; the others: (new ErrorManager).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
GENERIC_FAILURE | int | constant · static | o.GENERIC_FAILURE |
WRITE_FAILURE | int | constant · static | o.WRITE_FAILURE |
FLUSH_FAILURE | int | constant · static | o.FLUSH_FAILURE |
CLOSE_FAILURE | int | constant · static | o.CLOSE_FAILURE |
OPEN_FAILURE | int | constant · static | o.OPEN_FAILURE |
FORMAT_FAILURE | int | constant · static | o.FORMAT_FAILURE |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
error | error(msg,ex,code) | void error(String msg, Exception ex, int code) |
The methods and fields of Object are inherited.
FileHandler#
class · extends StreamHandler · java.util.logging.FileHandler
Constructors
new FileHandler() |
new FileHandler(String pattern) |
new FileHandler(String pattern, boolean append) |
new FileHandler(String pattern, int limit, int count) |
new FileHandler(String pattern, int limit, int count, boolean append) |
new FileHandler(String pattern, long limit, int count, boolean append) |
Ring: new FileHandler(args) uses the constructor with the fewest parameters (at least one); new FileHandler makes the object with the constructor without parameters; the others: (new FileHandler).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of StreamHandler are inherited.
Filter#
interface · java.util.logging.Filter
Methods
| Method | Ring call | Java overloads |
|---|---|---|
isLoggable | isLoggable(record) | boolean isLoggable(LogRecord record) |
Handler#
abstract · extends Object · java.util.logging.Handler
Methods
| Method | Ring call | Java overloads |
|---|---|---|
close | close() | void close() |
flush | flush() | void flush() |
getEncoding | getEncoding() | String getEncoding() |
getErrorManager | getErrorManager() | ErrorManager getErrorManager() |
getFilter | getFilter() | Filter getFilter() |
getFormatter | getFormatter() | Formatter getFormatter() |
getLevel | getLevel() | Level getLevel() |
isLoggable | isLoggable(record) | boolean isLoggable(LogRecord record) |
publish | publish(record) | void publish(LogRecord record) |
setEncoding | setEncoding(encoding) | void setEncoding(String encoding) |
setErrorManager | setErrorManager(em) | void setErrorManager(ErrorManager em) |
setFilter | setFilter(newFilter) | void setFilter(Filter newFilter) |
setFormatter | setFormatter(newFormatter) | void setFormatter(Formatter newFormatter) |
setLevel | setLevel(newLevel) | void setLevel(Level newLevel) |
The methods and fields of Object are inherited.
Level#
class · extends Object · java.util.logging.Level
Implements: Serializable
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
OFF | Level | constant · static | o.OFF |
SEVERE | Level | constant · static | o.SEVERE |
WARNING | Level | constant · static | o.WARNING |
INFO | Level | constant · static | o.INFO |
CONFIG | Level | constant · static | o.CONFIG |
FINE | Level | constant · static | o.FINE |
FINER | Level | constant · static | o.FINER |
FINEST | Level | constant · static | o.FINEST |
ALL | Level | constant · static | o.ALL |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getLocalizedName | getLocalizedName() | String getLocalizedName() |
getName | getName() | String getName() |
getResourceBundleName | getResourceBundleName() | String getResourceBundleName() |
intValue | intValue() | int intValue() |
parse | parse(name) | static Level parse(String name) |
The methods and fields of Object are inherited.
Logger#
class · extends Object · java.util.logging.Logger
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
GLOBAL_LOGGER_NAME | String | constant · static | o.GLOBAL_LOGGER_NAME |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@getAnonymousLogger | @getAnonymousLogger(resourceBundleName) | static Logger getAnonymousLogger(String resourceBundleName) |
addHandler | addHandler(handler) | void addHandler(Handler handler) |
config | config(msg) | void config(String msg)void config(Supplier msgSupplier) |
entering | entering([sourceClass,sourceMethod])entering([ :sourceClass = v, :sourceMethod = v ])entering([sourceClass,sourceMethod,param1])entering([ :sourceClass = v, :sourceMethod = v, :param1 = v ]) | void entering(String sourceClass, String sourceMethod)void entering(String sourceClass, String sourceMethod, Object param1)void entering(String sourceClass, String sourceMethod, Object[] params) |
exiting | exiting([sourceClass,sourceMethod])exiting([ :sourceClass = v, :sourceMethod = v ])exiting([sourceClass,sourceMethod,result])exiting([ :sourceClass = v, :sourceMethod = v, :result = v ]) | void exiting(String sourceClass, String sourceMethod)void exiting(String sourceClass, String sourceMethod, Object result) |
fine | fine(msg) | void fine(String msg)void fine(Supplier msgSupplier) |
finer | finer(msgSupplier) | void finer(Supplier msgSupplier)void finer(String msg) |
finest | finest(msg) | void finest(String msg)void finest(Supplier msgSupplier) |
getAnonymousLogger | getAnonymousLogger() | static Logger getAnonymousLogger() |
getFilter | getFilter() | Filter getFilter() |
getGlobal | getGlobal() | static Logger getGlobal() |
getHandlers | getHandlers() | Handler[] getHandlers() |
getLevel | getLevel() | Level getLevel() |
getLogger | getLogger(name)getLogger([name,resourceBundleName])getLogger([ :name = v, :resourceBundleName = v ]) | static Logger getLogger(String name)static Logger getLogger(String name, String resourceBundleName) |
getName | getName() | String getName() |
getParent | getParent() | Logger getParent() |
getResourceBundle | getResourceBundle() | ResourceBundle getResourceBundle() |
getResourceBundleName | getResourceBundleName() | String getResourceBundleName() |
getUseParentHandlers | getUseParentHandlers() | boolean getUseParentHandlers() |
info | info(msg) | void info(String msg)void info(Supplier msgSupplier) |
isLoggable | isLoggable(level) | boolean isLoggable(Level level) |
log | log(record)log([level,msgSupplier])log([ :level = v, :msgSupplier = v ])log([level,msg,param1])log([ :level = v, :msg = v, :param1 = v ]) | void log(LogRecord record)void log(Level level, Supplier msgSupplier)void log(Level level, String msg)void log(Level level, String msg, Object param1)void log(Level level, Throwable thrown, Supplier msgSupplier)void log(Level level, String msg, Throwable thrown)void log(Level level, String msg, Object[] params) |
logp | logp([level,sourceClass,sourceMethod,msg])logp([ :level = v, :sourceClass = v, :sourceMethod = v, :msg = v ])logp([level,sourceClass,sourceMethod,msg,params])logp([ :level = v, :sourceClass = v, :sourceMethod = v, :msg = v, :params = v ]) | void logp(Level level, String sourceClass, String sourceMethod, String msg)void logp(Level level, String sourceClass, String sourceMethod, Supplier msgSupplier)void logp(Level level, String sourceClass, String sourceMethod, String msg, Object[] params)void logp(Level level, String sourceClass, String sourceMethod, String msg, Throwable thrown)void logp(Level level, String sourceClass, String sourceMethod, Throwable thrown, Supplier msgSupplier)void logp(Level level, String sourceClass, String sourceMethod, String msg, Object param1) |
logrb | logrb([level,bundle,msg,params])logrb([ :level = v, :bundle = v, :msg = v, :params = v ])logrb([level,sourceClass,sourceMethod,bundleName,msg])logrb([ :level = v, :sourceClass = v, :sourceMethod = v, :bundleName = v, :msg = v ])logrb([level,sourceClass,sourceMethod,bundle,msg,params])logrb([ :level = v, :sourceClass = v, :sourceMethod = v, :bundle = v, :msg = v, :params = v ]) | void logrb(Level level, ResourceBundle bundle, String msg, Object[] params)void logrb(Level level, ResourceBundle bundle, String msg, Throwable thrown)void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg)void logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle, String msg, Object[] params)void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Throwable thrown)void logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle, String msg, Throwable thrown)void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object param1)void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object[] params) |
removeHandler | removeHandler(handler) | void removeHandler(Handler handler) |
setFilter | setFilter(newFilter) | void setFilter(Filter newFilter) |
setLevel | setLevel(newLevel) | void setLevel(Level newLevel) |
setParent | setParent(parent) | void setParent(Logger parent) |
setResourceBundle | setResourceBundle(bundle) | void setResourceBundle(ResourceBundle bundle) |
setUseParentHandlers | setUseParentHandlers(useParentHandlers) | void setUseParentHandlers(boolean useParentHandlers) |
severe | severe(msgSupplier) | void severe(Supplier msgSupplier)void severe(String msg) |
throwing | throwing(sourceClass,sourceMethod,thrown) | void throwing(String sourceClass, String sourceMethod, Throwable thrown) |
warning | warning(msgSupplier) | void warning(Supplier msgSupplier)void warning(String msg) |
The methods and fields of Object are inherited.
LoggingFormatter#
abstract · extends Object · java.util.logging.Formatter
Methods
| Method | Ring call | Java overloads |
|---|---|---|
format | format(record) | String format(LogRecord record) |
formatMessage | formatMessage(record) | String formatMessage(LogRecord record) |
getHead | getHead(h) | String getHead(Handler h) |
getTail | getTail(h) | String getTail(Handler h) |
The methods and fields of Object are inherited.
LoggingMXBean#
interface · java.util.logging.LoggingMXBean
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getLoggerLevel | getLoggerLevel(loggerName) | String getLoggerLevel(String loggerName) |
getLoggerNames | getLoggerNames() | List getLoggerNames() |
getParentLoggerName | getParentLoggerName(loggerName) | String getParentLoggerName(String loggerName) |
setLoggerLevel | setLoggerLevel(loggerName,levelName) | void setLoggerLevel(String loggerName, String levelName) |
LoggingPermission#
class final · extends BasicPermission · java.util.logging.LoggingPermission
Constructors
new LoggingPermission(String name, String actions) |
Ring: new LoggingPermission(args) uses the constructor with the fewest parameters (at least one); new LoggingPermission makes the object with the constructor without parameters; the others: (new LoggingPermission).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of BasicPermission are inherited.
LogManager#
class · extends Object · java.util.logging.LogManager
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
LOGGING_MXBEAN_NAME | String | constant · static | o.LOGGING_MXBEAN_NAME |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@readConfiguration | @readConfiguration(ins) | void readConfiguration(InputStream ins) |
addConfigurationListener | addConfigurationListener(listener) | LogManager addConfigurationListener(Runnable listener) |
addLogger | addLogger(logger) | boolean addLogger(Logger logger) |
checkAccess | checkAccess() | void checkAccess() |
getLogger | getLogger(name) | Logger getLogger(String name) |
getLoggerNames | getLoggerNames() | Enumeration getLoggerNames() |
getLoggingMXBean | getLoggingMXBean() | static LoggingMXBean getLoggingMXBean() |
getLogManager | getLogManager() | static LogManager getLogManager() |
getProperty | getProperty(name) | String getProperty(String name) |
readConfiguration | readConfiguration() | void readConfiguration() |
removeConfigurationListener | removeConfigurationListener(listener) | void removeConfigurationListener(Runnable listener) |
reset | reset() | void reset() |
updateConfiguration | updateConfiguration(mapper)updateConfiguration([ins,mapper])updateConfiguration([ :ins = v, :mapper = v ]) | void updateConfiguration(Function mapper)void updateConfiguration(InputStream ins, Function mapper) |
The methods and fields of Object are inherited.
LogRecord#
class · extends Object · java.util.logging.LogRecord
Implements: Serializable
Constructors
new LogRecord(Level level, String msg) |
Ring: new LogRecord(args) uses the constructor with the fewest parameters (at least one); new LogRecord makes the object with the constructor without parameters; the others: (new LogRecord).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getInstant | getInstant() | Instant getInstant() |
getLevel | getLevel() | Level getLevel() |
getLoggerName | getLoggerName() | String getLoggerName() |
getLongThreadID | getLongThreadID() | long getLongThreadID() |
getMessage | getMessage() | String getMessage() |
getMillis | getMillis() | long getMillis() |
getParameters | getParameters() | Object[] getParameters() |
getResourceBundle | getResourceBundle() | ResourceBundle getResourceBundle() |
getResourceBundleName | getResourceBundleName() | String getResourceBundleName() |
getSequenceNumber | getSequenceNumber() | long getSequenceNumber() |
getSourceClassName | getSourceClassName() | String getSourceClassName() |
getSourceMethodName | getSourceMethodName() | String getSourceMethodName() |
getThreadID | getThreadID() | int getThreadID() |
getThrown | getThrown() | Throwable getThrown() |
setInstant | setInstant(instant) | void setInstant(Instant instant) |
setLevel | setLevel(level) | void setLevel(Level level) |
setLoggerName | setLoggerName(name) | void setLoggerName(String name) |
setLongThreadID | setLongThreadID(longThreadID) | LogRecord setLongThreadID(long longThreadID) |
setMessage | setMessage(message) | void setMessage(String message) |
setMillis | setMillis(millis) | void setMillis(long millis) |
setParameters | setParameters(parameters) | void setParameters(Object[] parameters) |
setResourceBundle | setResourceBundle(bundle) | void setResourceBundle(ResourceBundle bundle) |
setResourceBundleName | setResourceBundleName(name) | void setResourceBundleName(String name) |
setSequenceNumber | setSequenceNumber(seq) | void setSequenceNumber(long seq) |
setSourceClassName | setSourceClassName(sourceClassName) | void setSourceClassName(String sourceClassName) |
setSourceMethodName | setSourceMethodName(sourceMethodName) | void setSourceMethodName(String sourceMethodName) |
setThreadID | setThreadID(threadID) | void setThreadID(int threadID) |
setThrown | setThrown(thrown) | void setThrown(Throwable thrown) |
The methods and fields of Object are inherited.
MemoryHandler#
class · extends Handler · java.util.logging.MemoryHandler
Constructors
new MemoryHandler() |
new MemoryHandler(Handler target, int size, Level pushLevel) |
Ring: new MemoryHandler(args) uses the constructor with the fewest parameters (at least one); new MemoryHandler makes the object with the constructor without parameters; the others: (new MemoryHandler).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getPushLevel | getPushLevel() | Level getPushLevel() |
push | push() | void push() |
setPushLevel | setPushLevel(newLevel) | void setPushLevel(Level newLevel) |
The methods and fields of Handler are inherited.
SimpleFormatter#
class · extends LoggingFormatter · java.util.logging.SimpleFormatter
Constructors
new SimpleFormatter() |
Ring: new SimpleFormatter(args) uses the constructor with the fewest parameters (at least one); new SimpleFormatter makes the object with the constructor without parameters; the others: (new SimpleFormatter).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of LoggingFormatter are inherited.
SocketHandler#
class · extends StreamHandler · java.util.logging.SocketHandler
Constructors
new SocketHandler() |
new SocketHandler(String host, int port) |
Ring: new SocketHandler(args) uses the constructor with the fewest parameters (at least one); new SocketHandler makes the object with the constructor without parameters; the others: (new SocketHandler).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of StreamHandler are inherited.
StreamHandler#
class · extends Handler · java.util.logging.StreamHandler
Constructors
new StreamHandler() |
new StreamHandler(OutputStream out, Formatter formatter) |
Ring: new StreamHandler(args) uses the constructor with the fewest parameters (at least one); new StreamHandler makes the object with the constructor without parameters; the others: (new StreamHandler).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of Handler are inherited.
XMLFormatter#
class · extends LoggingFormatter · java.util.logging.XMLFormatter
Constructors
new XMLFormatter() |
Ring: new XMLFormatter(args) uses the constructor with the fewest parameters (at least one); new XMLFormatter makes the object with the constructor without parameters; the others: (new XMLFormatter).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of LoggingFormatter are inherited.