Java Doc for TreeLogger.java in  » Ajax » GWT » com » google » gwt » core » ext » 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 » Ajax » GWT » com.google.gwt.core.ext 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.google.gwt.core.ext.TreeLogger

All known Subclasses:   com.google.gwt.dev.util.log.AbstractTreeLogger,  com.google.gwt.dev.util.log.ThreadLocalTreeLoggerProxy,
TreeLogger
public interface TreeLogger (Code)
An interface used to log messages in deferred binding generators.

Inner Class : enum Type

Field Summary
 TypeALL
     Logs everything -- quite a bit of stuff.
 TypeDEBUG
     Logs detailed information that could be useful during debugging.
 TypeERROR
     Logs an error.
 TypeINFO
     Logs information.
 TreeLoggerNULL
     A valid logger that ignores all messages.
 TypeSPAM
     Logs extremely verbose and detailed information that is typically useful only to product implementors.
 TypeTRACE
     Logs information related to lower-level operation.
 TypeWARN
     Logs a warning.


Method Summary
 TreeLoggerbranch(TreeLogger.Type type, String msg, Throwable caught)
     Produces a branched logger, which can be used to write messages that are logically grouped together underneath the current logger.
 booleanisLoggable(TreeLogger.Type type)
     Determines whether or not a log entry of the specified type would actually be logged.
 voidlog(TreeLogger.Type type, String msg, Throwable caught)
     Logs a message and/or an exception.

Field Detail
ALL
Type ALL(Code)
Logs everything -- quite a bit of stuff.



DEBUG
Type DEBUG(Code)
Logs detailed information that could be useful during debugging.



ERROR
Type ERROR(Code)
Logs an error.



INFO
Type INFO(Code)
Logs information.



NULL
TreeLogger NULL(Code)
A valid logger that ignores all messages. Occasionally useful when calling methods that require a logger parameter.



SPAM
Type SPAM(Code)
Logs extremely verbose and detailed information that is typically useful only to product implementors.



TRACE
Type TRACE(Code)
Logs information related to lower-level operation.



WARN
Type WARN(Code)
Logs a warning.





Method Detail
branch
TreeLogger branch(TreeLogger.Type type, String msg, Throwable caught)(Code)
Produces a branched logger, which can be used to write messages that are logically grouped together underneath the current logger. The details of how/if the resulting messages are displayed is implementation-dependent.

The log message supplied when branching serves two purposes. First, the message should be considered a heading for all the child messages below it. Second, the type of the message provides a hint as to the importance of the children below it. As an optimization, an implementation could return a "no-op" logger if messages of the specified type weren't being logged, which the implication being that all nested log messages were no more important than the level of their branch parent.

As an example of how hierarchical logging can be used, a branched logger in a GUI could write log message as child items of a parent node in a tree control. If logging to streams, such as a text console, the branched logger could prefix each entry with a unique string and indent its text so that it could be sorted later to reconstruct a proper hierarchy.


Parameters:
  type -
Parameters:
  msg - An optional message to log, which can be null ifonly an exception is being logged
Parameters:
  caught - An optional exception to log, which can be nullif only a message is being logged an instance of TreeLogger representing the new branch ofthe log. May be the same instance on which this method is called



isLoggable
boolean isLoggable(TreeLogger.Type type)(Code)
Determines whether or not a log entry of the specified type would actually be logged. Caller use this method to avoid constructing log messages that would be thrown away.



log
void log(TreeLogger.Type type, String msg, Throwable caught)(Code)
Logs a message and/or an exception. It is also legal to call this method using null arguments for both msg and caught, in which case the log event can be ignored.
Parameters:
  type -
Parameters:
  msg - An optional message to log, which can be null ifonly an exception is being logged
Parameters:
  caught - An optional exception to log, which can be nullif only a message is being logged



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