Java java.util.logging LogRecord fields, constructors, methods, implement or subclass

Example usage for Java java.util.logging LogRecord fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.logging LogRecord.

The text is from its open source code.

Constructor

LogRecord(Level level, String msg)
Construct a LogRecord with the given level and message values.

Method

LevelgetLevel()
Get the logging message level, for example Level.SEVERE.
StringgetLoggerName()
Get the source Logger's name.
StringgetMessage()
Get the "raw" log message, before localization or formatting.
longgetMillis()
Get truncated event time in milliseconds since 1970.
Object[]getParameters()
Get the parameters to the log message.
longgetSequenceNumber()
Get the sequence number.
StringgetSourceClassName()
Get the name of the class that (allegedly) issued the logging request.
StringgetSourceMethodName()
Get the name of the method that (allegedly) issued the logging request.
intgetThreadID()
Get an identifier for the thread where the message originated.
ThrowablegetThrown()
Get any throwable associated with the log record.
voidsetLevel(Level level)
Set the logging message level, for example Level.SEVERE.
voidsetLoggerName(String name)
Set the source Logger's name.
voidsetMessage(String message)
Set the "raw" log message, before localization or formatting.
voidsetParameters(Object parameters[])
Set the parameters to the log message.
voidsetResourceBundle(ResourceBundle bundle)
Set the localization resource bundle.
voidsetResourceBundleName(String name)
Set the localization resource bundle name.
voidsetSourceClassName(String sourceClassName)
Set the name of the class that (allegedly) issued the logging request.
voidsetSourceMethodName(String sourceMethodName)
Set the name of the method that (allegedly) issued the logging request.
voidsetThrown(Throwable thrown)
Set a throwable associated with the log event.