1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
\r
5 <!-- Generated by javadoc (build 1.5.0_22) on Tue May 10 10:28:01 IST 2011 -->
\r
10 <META NAME="keywords" CONTENT="com.pras.Log class">
\r
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
\r
14 <SCRIPT type="text/javascript">
\r
15 function windowTitle()
\r
17 parent.document.title="Log";
\r
25 <BODY BGCOLOR="white" onload="windowTitle();">
\r
28 <!-- ========= START OF TOP NAVBAR ======= -->
\r
29 <A NAME="navbar_top"><!-- --></A>
\r
30 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
\r
31 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
\r
33 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
\r
34 <A NAME="navbar_top_firstrow"><!-- --></A>
\r
35 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
\r
36 <TR ALIGN="center" VALIGN="top">
\r
37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
\r
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
\r
39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
\r
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Log.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
\r
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
\r
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
\r
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
\r
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
\r
48 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
\r
54 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
55 <A HREF="../../com/pras/Collaborator.html" title="class in com.pras"><B>PREV CLASS</B></A>
\r
56 <A HREF="../../com/pras/SpreadSheet.html" title="class in com.pras"><B>NEXT CLASS</B></A></FONT></TD>
\r
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
58 <A HREF="../../index.html?com/pras/Log.html" target="_top"><B>FRAMES</B></A>
\r
59 <A HREF="Log.html" target="_top"><B>NO FRAMES</B></A>
\r
60 <SCRIPT type="text/javascript">
\r
63 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
\r
68 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
\r
75 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
76 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
\r
77 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
78 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
\r
81 <A NAME="skip-navbar_top"></A>
\r
82 <!-- ========= END OF TOP NAVBAR ========= -->
\r
85 <!-- ======== START OF CLASS DATA ======== -->
\r
93 <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>com.pras.Log</B>
\r
97 <DT><PRE>public class <B>Log</B><DT>extends java.lang.Object</DL>
\r
101 Based on your target platform- edit this file and add appropriate Log console
103 for Android, android.util.Log
104 for J2ME, Desktop File based logging.
106 By default Logging will be enabled
\r
111 <DT><B>Author:</B></DT>
\r
112 <DD>Prasanta Paul</DD>
\r
118 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
\r
120 <A NAME="constructor_summary"><!-- --></A>
\r
121 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
122 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
123 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
\r
124 <B>Constructor Summary</B></FONT></TH>
\r
126 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
127 <TD><CODE><B><A HREF="../../com/pras/Log.html#Log()">Log</A></B>()</CODE>
\r
130 </TD>
\r
134 <!-- ========== METHOD SUMMARY =========== -->
\r
136 <A NAME="method_summary"><!-- --></A>
\r
137 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
138 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
139 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
\r
140 <B>Method Summary</B></FONT></TH>
\r
142 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
143 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
144 <CODE>static void</CODE></FONT></TD>
\r
145 <TD><CODE><B><A HREF="../../com/pras/Log.html#disableLog()">disableLog</A></B>()</CODE>
\r
148 Disable logging.</TD>
\r
150 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
151 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
152 <CODE>static void</CODE></FONT></TD>
\r
153 <TD><CODE><B><A HREF="../../com/pras/Log.html#enableLog()">enableLog</A></B>()</CODE>
\r
156 Enable logging</TD>
\r
158 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
159 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
160 <CODE>static void</CODE></FONT></TD>
\r
161 <TD><CODE><B><A HREF="../../com/pras/Log.html#p(java.lang.String, java.lang.String)">p</A></B>(java.lang.String tag,
\r
162 java.lang.String msg)</CODE>
\r
165 Pring Log message</TD>
\r
168 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
\r
169 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
170 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
\r
171 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
\r
173 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
174 <TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
\r
180 <!-- ========= CONSTRUCTOR DETAIL ======== -->
\r
182 <A NAME="constructor_detail"><!-- --></A>
\r
183 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
184 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
185 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
\r
186 <B>Constructor Detail</B></FONT></TH>
\r
190 <A NAME="Log()"><!-- --></A><H3>
\r
193 public <B>Log</B>()</PRE>
\r
197 <!-- ============ METHOD DETAIL ========== -->
\r
199 <A NAME="method_detail"><!-- --></A>
\r
200 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
201 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
202 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
\r
203 <B>Method Detail</B></FONT></TH>
\r
207 <A NAME="enableLog()"><!-- --></A><H3>
\r
210 public static void <B>enableLog</B>()</PRE>
\r
220 <A NAME="disableLog()"><!-- --></A><H3>
\r
223 public static void <B>disableLog</B>()</PRE>
\r
225 <DD>Disable logging. Good for production release.
\r
233 <A NAME="p(java.lang.String, java.lang.String)"><!-- --></A><H3>
\r
236 public static void <B>p</B>(java.lang.String tag,
\r
237 java.lang.String msg)</PRE>
\r
239 <DD>Pring Log message
\r
242 <DT><B>Parameters:</B><DD><CODE>tag</CODE> - Log TAG<DD><CODE>msg</CODE> - Log Message</DL>
\r
245 <!-- ========= END OF CLASS DATA ========= -->
\r
249 <!-- ======= START OF BOTTOM NAVBAR ====== -->
\r
250 <A NAME="navbar_bottom"><!-- --></A>
\r
251 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
\r
252 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
\r
254 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
\r
255 <A NAME="navbar_bottom_firstrow"><!-- --></A>
\r
256 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
\r
257 <TR ALIGN="center" VALIGN="top">
\r
258 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
\r
259 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
\r
260 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
\r
261 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Log.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
\r
262 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
\r
263 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
\r
264 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
\r
265 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
\r
269 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
\r
275 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
276 <A HREF="../../com/pras/Collaborator.html" title="class in com.pras"><B>PREV CLASS</B></A>
\r
277 <A HREF="../../com/pras/SpreadSheet.html" title="class in com.pras"><B>NEXT CLASS</B></A></FONT></TD>
\r
278 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
279 <A HREF="../../index.html?com/pras/Log.html" target="_top"><B>FRAMES</B></A>
\r
280 <A HREF="Log.html" target="_top"><B>NO FRAMES</B></A>
\r
281 <SCRIPT type="text/javascript">
\r
284 document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
\r
289 <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
\r
296 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
297 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
\r
298 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
299 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
\r
302 <A NAME="skip-navbar_bottom"></A>
\r
303 <!-- ======== END OF BOTTOM NAVBAR ======= -->
\r