Java Doc for LogRecord.java in  » Apache-Harmony-Java-SE » java-package » java » util » logging » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » java package » java.util.logging 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.util.logging.LogRecord

LogRecord
public class LogRecord implements Serializable(Code)
A LogRecord object represents a logging request. It is passed between the logging framework and individual logging handlers. Client applications should not modify a LogRecord object that has been passed into the logging framework.

The LogRecord class will infer the source method name and source class name the first time they are accessed if the client application didn't specify them explicitly. This automatic inference is based on the analysis of the call stack and is not guaranteed to be precise. Client applications should force the initialization of these two fields by calling getSourceClassName or getSourceMethodName if they expect to use them after passing the LogRecord object to another thread or transmitting it over RMI.




Constructor Summary
public  LogRecord(Level level, String msg)
     Constructs a LogRecord object using the supplied the logging level and message.

Method Summary
public  LevelgetLevel()
     Gets the logging level.
public  StringgetLoggerName()
     Gets the name of the logger.
public  StringgetMessage()
     Gets the raw message.
public  longgetMillis()
     Gets the time that the event occurred, in milliseconds since 1970.
public  Object[]getParameters()
     Gets the parameters.
public  ResourceBundlegetResourceBundle()
     Gets the resource bundle used to localize the raw message during formatting.
public  StringgetResourceBundleName()
     Gets the name of the resource bundle.
public  longgetSequenceNumber()
     Gets the sequence number.
public  StringgetSourceClassName()
     Gets the name of the class that issued the logging call.
public  StringgetSourceMethodName()
     Gets the name of the method that issued the logging call.
public  intgetThreadID()
     Gets the ID of the thread originating the message.
public  ThrowablegetThrown()
     Gets the Throwable object associated with this log record.
public  voidsetLevel(Level level)
     Sets the logging level.
public  voidsetLoggerName(String loggerName)
     Sets the name of the logger.
public  voidsetMessage(String message)
     Sets the raw message.
public  voidsetMillis(long millis)
     Sets the time that the event occurred, in milliseconds since 1970.
public  voidsetParameters(Object[] parameters)
     Sets the parameters.
public  voidsetResourceBundle(ResourceBundle resourceBundle)
     Sets the resource bundle used to localize the raw message during formatting.
public  voidsetResourceBundleName(String resourceBundleName)
     Sets the name of the resource bundle.
public  voidsetSequenceNumber(long sequenceNumber)
     Sets the sequence number.
public  voidsetSourceClassName(String sourceClassName)
     Sets the name of the class that issued the logging call.
public  voidsetSourceMethodName(String sourceMethodName)
     Sets the name of the method that issued the logging call.
public  voidsetThreadID(int threadID)
     Sets the ID of the thread originating the message.
public  voidsetThrown(Throwable thrown)
     Sets the Throwable object associated with this log record.


Constructor Detail
LogRecord
public LogRecord(Level level, String msg)(Code)
Constructs a LogRecord object using the supplied the logging level and message. The millis property is set to the current time. The sequence property is set to a new unique value, allocated in increasing order within a VM. The thread ID is set to a unique value for the current thread. All other properties are set to null.
Parameters:
  level - the logging level which may not be null
Parameters:
  msg - the raw message




Method Detail
getLevel
public Level getLevel()(Code)
Gets the logging level. the logging level



getLoggerName
public String getLoggerName()(Code)
Gets the name of the logger. the logger name



getMessage
public String getMessage()(Code)
Gets the raw message. the raw message



getMillis
public long getMillis()(Code)
Gets the time that the event occurred, in milliseconds since 1970. the time that the event occurred, in milliseconds since 1970



getParameters
public Object[] getParameters()(Code)
Gets the parameters. the array of parameters



getResourceBundle
public ResourceBundle getResourceBundle()(Code)
Gets the resource bundle used to localize the raw message during formatting. the associated resource bundle



getResourceBundleName
public String getResourceBundleName()(Code)
Gets the name of the resource bundle. the name of the resource bundle



getSequenceNumber
public long getSequenceNumber()(Code)
Gets the sequence number. the sequence number



getSourceClassName
public String getSourceClassName()(Code)
Gets the name of the class that issued the logging call. the name of the class that issued the logging call



getSourceMethodName
public String getSourceMethodName()(Code)
Gets the name of the method that issued the logging call. the name of the method that issued the logging call



getThreadID
public int getThreadID()(Code)
Gets the ID of the thread originating the message. the ID of the thread originating the message



getThrown
public Throwable getThrown()(Code)
Gets the Throwable object associated with this log record. the Throwable object associated with this logrecord



setLevel
public void setLevel(Level level)(Code)
Sets the logging level.
Parameters:
  level - the level to set



setLoggerName
public void setLoggerName(String loggerName)(Code)
Sets the name of the logger.
Parameters:
  loggerName - the logger name to set



setMessage
public void setMessage(String message)(Code)
Sets the raw message.
Parameters:
  message - the raw message to set



setMillis
public void setMillis(long millis)(Code)
Sets the time that the event occurred, in milliseconds since 1970.
Parameters:
  millis - the time that the event occurred, in milliseconds since 1970



setParameters
public void setParameters(Object[] parameters)(Code)
Sets the parameters.
Parameters:
  parameters - the array of parameters to set



setResourceBundle
public void setResourceBundle(ResourceBundle resourceBundle)(Code)
Sets the resource bundle used to localize the raw message during formatting.
Parameters:
  resourceBundle - the resource bundle to set



setResourceBundleName
public void setResourceBundleName(String resourceBundleName)(Code)
Sets the name of the resource bundle.
Parameters:
  resourceBundleName - the name of the resource bundle to set



setSequenceNumber
public void setSequenceNumber(long sequenceNumber)(Code)
Sets the sequence number. It is usually unnecessary to call this method to change the sequence number because the number is allocated when this instance is constructed.
Parameters:
  sequenceNumber - the sequence number to set



setSourceClassName
public void setSourceClassName(String sourceClassName)(Code)
Sets the name of the class that issued the logging call.
Parameters:
  sourceClassName - the name of the class that issued the logging call



setSourceMethodName
public void setSourceMethodName(String sourceMethodName)(Code)
Sets the name of the method that issued the logging call.
Parameters:
  sourceMethodName - the name of the method that issued the logging call



setThreadID
public void setThreadID(int threadID)(Code)
Sets the ID of the thread originating the message.
Parameters:
  threadID - the ID of the thread originating the message



setThrown
public void setThrown(Throwable thrown)(Code)
Sets the Throwable object associated with this log record.
Parameters:
  thrown - the Throwable object associated with this logrecord



Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final public Class<? extends Object> getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify()(Code)(Java Doc)
final public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait(long millis) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.