<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc on Mon Aug 05 13:17:01 EDT 2002 --> <TITLE> Perforce API: Class Debug </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> </HEAD> <BODY BGCOLOR="white"> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_top"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Debug.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> <a target="_top" href="http://www.perforce.com/"><img alt="Perforce" border="0" height="44" width="151" src="doc-files/perforce_logo.gif"></a></EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../com/perforce/api/Counter.html"><B>PREV CLASS</B></A> <A HREF="../../../com/perforce/api/DirEntry.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Debug.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> com.perforce.api</FONT> <BR> Class Debug</H2> <PRE> <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">java.lang.Object</A> | +--<B>com.perforce.api.Debug</B> </PRE> <HR> <DL> <DT>public final class <B>Debug</B><DT>extends <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A></DL> <P> Utility class used for debugging. The level of debugging determines the amount of debugging information that is generated. The process using this class for debugging should ensure that it <A HREF="../../../com/perforce/api/Debug.html#setDebugLevel(int)"><CODE>sets the debugging level</CODE></A> appropriately. <P> <DL> <DT><B>Version: </B><DD>$Date: 2005/07/12 $ $Revision: #1 $</DD> <DT><B>Author: </B><DD><a href="mailto:david@markley.cc">David Markley</a></DD> </DL> <HR> <P> <!-- ======== INNER CLASS SUMMARY ======== --> <!-- =========== FIELD SUMMARY =========== --> <A NAME="field_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Field Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#ERROR">ERROR</A></B></CODE> <BR> Only error messages are displayed.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#LOG_NONE">LOG_NONE</A></B></CODE> <BR> Debugging output is discarded entirely.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#LOG_ONLY">LOG_ONLY</A></B></CODE> <BR> Debugging output is sent only to the <A HREF="../../../com/perforce/api/EventLog.html"><CODE>EventLog</CODE></A>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#LOG_SPLIT">LOG_SPLIT</A></B></CODE> <BR> Debugging output is sent to standard out and to the <A HREF="../../../com/perforce/api/EventLog.html"><CODE>EventLog</CODE></A>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#NONE">NONE</A></B></CODE> <BR> No debug messages are displayed.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#NOTICE">NOTICE</A></B></CODE> <BR> Error, warning, and notice messages are displayed.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#VERBOSE">VERBOSE</A></B></CODE> <BR> Error, warning, notice, and verbose messages are displayed.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#WARNING">WARNING</A></B></CODE> <BR> Error and warning messages are displayed.</TD> </TR> </TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#Debug()">Debug</A></B>()</CODE> <BR> </TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Method Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#error(java.lang.String)">error</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> msg)</CODE> <BR> Displays an error message for debugging.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#getDebugLevel()">getDebugLevel</A></B>()</CODE> <BR> Returns the current debug level.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../com/perforce/api/EventLog.html">EventLog</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#getEventLog()">getEventLog</A></B>()</CODE> <BR> Returns the current <code>EventLog</code> in use.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#getLevelName(int)">getLevelName</A></B>(int level)</CODE> <BR> Returns the name associated with the specified level.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#getLogLevel()">getLogLevel</A></B>()</CODE> <BR> Returns the current logging level.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#getShowThread()">getShowThread</A></B>()</CODE> <BR> Returns the state of showing threads in degugging output.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#notify(java.lang.String)">notify</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> msg)</CODE> <BR> Displays a notice message for debugging.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#notify(java.lang.String, java.lang.String[])">notify</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> msg, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A>[] arry)</CODE> <BR> Displays a notice message for debugging.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#out(int, java.lang.String)">out</A></B>(int level, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> msg)</CODE> <BR> Writes the message to the debugging output.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#out(int, java.lang.String, java.lang.String[])">out</A></B>(int level, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> msg, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A>[] arry)</CODE> <BR> Writes the message and associated array of Strings to the debugging output.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#out(int, java.lang.Throwable)">out</A></B>(int level, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Throwable.html">Throwable</A> t)</CODE> <BR> Writes the message associated with the <code>Throwable</code> to the debugging output.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#out(java.lang.String, int, java.lang.Throwable)">out</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> format, int level, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Throwable.html">Throwable</A> t)</CODE> <BR> Writes the formatted message associated with the <code>Throwable</code> to the debugging output.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#setDebugLevel(int)">setDebugLevel</A></B>(int l)</CODE> <BR> Sets the debug level for the application.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#setEventLog(com.perforce.api.EventLog)">setEventLog</A></B>(<A HREF="../../../com/perforce/api/EventLog.html">EventLog</A> elog)</CODE> <BR> Sets the <code>EventLog</code> that debugging output should be sent to.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#setLogLevel(int)">setLogLevel</A></B>(int log_level)</CODE> <BR> Sets the logging level.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#setLogLevel(java.lang.String)">setLogLevel</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> level)</CODE> <BR> Sets the logging level.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#setProperties(java.util.Properties)">setProperties</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/util/Properties.html">Properties</A> props)</CODE> <BR> Sets the logging level from the supplied <code>Properties</code>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#setShowThread(boolean)">setShowThread</A></B>(boolean show)</CODE> <BR> If set <code>true</code>, the thread number is included in all debugging output.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#verbose(java.lang.String)">verbose</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> msg)</CODE> <BR> Displays a verbose message for debugging.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#verbose(java.lang.String, java.lang.String[])">verbose</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> msg, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A>[] arry)</CODE> <BR> Displays a verbose message for debugging.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/Debug.html#warn(java.lang.String)">warn</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> msg)</CODE> <BR> Displays a warning message for debugging.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A></B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#clone()">clone</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#toString()">toString</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD> </TR> </TABLE> <P> <!-- ============ FIELD DETAIL =========== --> <A NAME="field_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Field Detail</B></FONT></TD> </TR> </TABLE> <A NAME="ERROR"><!-- --></A><H3> ERROR</H3> <PRE> public static final int <B>ERROR</B></PRE> <DL> <DD>Only error messages are displayed.</DL> <HR> <A NAME="LOG_NONE"><!-- --></A><H3> LOG_NONE</H3> <PRE> public static final int <B>LOG_NONE</B></PRE> <DL> <DD>Debugging output is discarded entirely.</DL> <HR> <A NAME="LOG_ONLY"><!-- --></A><H3> LOG_ONLY</H3> <PRE> public static final int <B>LOG_ONLY</B></PRE> <DL> <DD>Debugging output is sent only to the <A HREF="../../../com/perforce/api/EventLog.html"><CODE>EventLog</CODE></A>.</DL> <HR> <A NAME="LOG_SPLIT"><!-- --></A><H3> LOG_SPLIT</H3> <PRE> public static final int <B>LOG_SPLIT</B></PRE> <DL> <DD>Debugging output is sent to standard out and to the <A HREF="../../../com/perforce/api/EventLog.html"><CODE>EventLog</CODE></A>.</DL> <HR> <A NAME="NONE"><!-- --></A><H3> NONE</H3> <PRE> public static final int <B>NONE</B></PRE> <DL> <DD>No debug messages are displayed.</DL> <HR> <A NAME="NOTICE"><!-- --></A><H3> NOTICE</H3> <PRE> public static final int <B>NOTICE</B></PRE> <DL> <DD>Error, warning, and notice messages are displayed.</DL> <HR> <A NAME="VERBOSE"><!-- --></A><H3> VERBOSE</H3> <PRE> public static final int <B>VERBOSE</B></PRE> <DL> <DD>Error, warning, notice, and verbose messages are displayed.</DL> <HR> <A NAME="WARNING"><!-- --></A><H3> WARNING</H3> <PRE> public static final int <B>WARNING</B></PRE> <DL> <DD>Error and warning messages are displayed.</DL> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TD> </TR> </TABLE> <A NAME="Debug()"><!-- --></A><H3> Debug</H3> <PRE> public <B>Debug</B>()</PRE> <DL> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Method Detail</B></FONT></TD> </TR> </TABLE> <A NAME="error(java.lang.String)"><!-- --></A><H3> error</H3> <PRE> public static void <B>error</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> msg)</PRE> <DL> <DD>Displays an error message for debugging. If the debugging level is set below ERROR, then no message is displayed.<DD><DL> <DT><B>Parameters:</B><DD><CODE>msg</CODE> - The debugging error message.</DL> </DD> </DL> <HR> <A NAME="getDebugLevel()"><!-- --></A><H3> getDebugLevel</H3> <PRE> public static int <B>getDebugLevel</B>()</PRE> <DL> <DD>Returns the current debug level.<DD><DL> <DT><B>See Also: </B><DD><A HREF="../../../com/perforce/api/Debug.html#setDebugLevel(int)"><CODE>setDebugLevel(int)</CODE></A></DL> </DD> </DL> <HR> <A NAME="getEventLog()"><!-- --></A><H3> getEventLog</H3> <PRE> public static <A HREF="../../../com/perforce/api/EventLog.html">EventLog</A> <B>getEventLog</B>()</PRE> <DL> <DD>Returns the current <code>EventLog</code> in use.</DL> <HR> <A NAME="getLevelName(int)"><!-- --></A><H3> getLevelName</H3> <PRE> public static <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> <B>getLevelName</B>(int level)</PRE> <DL> <DD>Returns the name associated with the specified level.<DD><DL> <DT><B>See Also: </B><DD><A HREF="../../../com/perforce/api/Debug.html#setDebugLevel(int)"><CODE>setDebugLevel(int)</CODE></A></DL> </DD> </DL> <HR> <A NAME="getLogLevel()"><!-- --></A><H3> getLogLevel</H3> <PRE> public static int <B>getLogLevel</B>()</PRE> <DL> <DD>Returns the current logging level.</DL> <HR> <A NAME="getShowThread()"><!-- --></A><H3> getShowThread</H3> <PRE> public static boolean <B>getShowThread</B>()</PRE> <DL> <DD>Returns the state of showing threads in degugging output.</DL> <HR> <A NAME="notify(java.lang.String)"><!-- --></A><H3> notify</H3> <PRE> public static void <B>notify</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> msg)</PRE> <DL> <DD>Displays a notice message for debugging. If the debugging level is set below NOTICE, then no message is displayed.<DD><DL> <DT><B>Parameters:</B><DD><CODE>msg</CODE> - The debugging notice message.</DL> </DD> </DL> <HR> <A NAME="notify(java.lang.String, java.lang.String[])"><!-- --></A><H3> notify</H3> <PRE> public static void <B>notify</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> msg, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A>[] arry)</PRE> <DL> <DD>Displays a notice message for debugging. If the debugging level is set below NOTICE, then no message is displayed.<DD><DL> <DT><B>Parameters:</B><DD><CODE>msg</CODE> - The debugging notice message.<DD><CODE>arry</CODE> - Array containing useful debug information.</DL> </DD> </DL> <HR> <A NAME="out(int, java.lang.String)"><!-- --></A><H3> out</H3> <PRE> public static void <B>out</B>(int level, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> msg)</PRE> <DL> <DD>Writes the message to the debugging output.<DD><DL> <DT><B>Parameters:</B><DD><CODE>level</CODE> - Debugging level to associate with the message.<DD><CODE>msg</CODE> - Debugging message.</DL> </DD> </DL> <HR> <A NAME="out(int, java.lang.String, java.lang.String[])"><!-- --></A><H3> out</H3> <PRE> public static void <B>out</B>(int level, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> msg, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A>[] arry)</PRE> <DL> <DD>Writes the message and associated array of Strings to the debugging output. The message will be followed by all the elements in the <code>arry</code>.<DD><DL> <DT><B>Parameters:</B><DD><CODE>level</CODE> - Debugging level to associate with the message.<DD><CODE>msg</CODE> - Debugging message.<DD><CODE>arry</CODE> - Array of strings to be sent to the debugging output.</DL> </DD> </DL> <HR> <A NAME="out(int, java.lang.Throwable)"><!-- --></A><H3> out</H3> <PRE> public static void <B>out</B>(int level, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Throwable.html">Throwable</A> t)</PRE> <DL> <DD>Writes the message associated with the <code>Throwable</code> to the debugging output.<DD><DL> <DT><B>Parameters:</B><DD><CODE>level</CODE> - Debugging level to associate with the message.<DD><CODE>t</CODE> - Throwable that contains the message.</DL> </DD> </DL> <HR> <A NAME="out(java.lang.String, int, java.lang.Throwable)"><!-- --></A><H3> out</H3> <PRE> public static void <B>out</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> format, int level, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Throwable.html">Throwable</A> t)</PRE> <DL> <DD>Writes the formatted message associated with the <code>Throwable</code> to the debugging output. The message will be placed in the string generated wherever the '{0}' attribute is placed.<DD><DL> <DT><B>Parameters:</B><DD><CODE>format</CODE> - Format to use for the debugging output.<DD><CODE>level</CODE> - Debugging level to associate with the message.<DD><CODE>t</CODE> - Throwable that contains the message.<DT><B>See Also: </B><DD><CODE>java.text.MessageFormat</CODE></DL> </DD> </DL> <HR> <A NAME="setDebugLevel(int)"><!-- --></A><H3> setDebugLevel</H3> <PRE> public static void <B>setDebugLevel</B>(int l)</PRE> <DL> <DD>Sets the debug level for the application. If this is 0, no debug information is generated.<DD><DL> <DT><B>Parameters:</B><DD><CODE>l</CODE> - The level of debugging to use.<DT><B>See Also: </B><DD><A HREF="../../../com/perforce/api/Debug.html#NONE"><CODE>NONE</CODE></A>, <A HREF="../../../com/perforce/api/Debug.html#ERROR"><CODE>ERROR</CODE></A>, <A HREF="../../../com/perforce/api/Debug.html#WARNING"><CODE>WARNING</CODE></A>, <A HREF="../../../com/perforce/api/Debug.html#NOTICE"><CODE>NOTICE</CODE></A>, <A HREF="../../../com/perforce/api/Debug.html#VERBOSE"><CODE>VERBOSE</CODE></A></DL> </DD> </DL> <HR> <A NAME="setEventLog(com.perforce.api.EventLog)"><!-- --></A><H3> setEventLog</H3> <PRE> public static void <B>setEventLog</B>(<A HREF="../../../com/perforce/api/EventLog.html">EventLog</A> elog)</PRE> <DL> <DD>Sets the <code>EventLog</code> that debugging output should be sent to.<DD><DL> <DT><B>Parameters:</B><DD><CODE>elog</CODE> - <code>EventLog</code> to use.</DL> </DD> </DL> <HR> <A NAME="setLogLevel(int)"><!-- --></A><H3> setLogLevel</H3> <PRE> public static void <B>setLogLevel</B>(int log_level)</PRE> <DL> <DD>Sets the logging level. This determines where the debugging output will be sent. Valid values are: <A HREF="../../../com/perforce/api/Debug.html#LOG_SPLIT"><CODE>LOG_SPLIT</CODE></A>, <A HREF="../../../com/perforce/api/Debug.html#LOG_ONLY"><CODE>LOG_ONLY</CODE></A>, and <A HREF="../../../com/perforce/api/Debug.html#LOG_NONE"><CODE>LOG_NONE</CODE></A>. The default is <A HREF="../../../com/perforce/api/Debug.html#LOG_ONLY"><CODE>LOG_ONLY</CODE></A>. <p> If the log level is set to <A HREF="../../../com/perforce/api/Debug.html#LOG_NONE"><CODE>LOG_NONE</CODE></A>, then the debug level is automatically set to <A HREF="../../../com/perforce/api/Debug.html#NONE"><CODE>NONE</CODE></A>.</DL> <HR> <A NAME="setLogLevel(java.lang.String)"><!-- --></A><H3> setLogLevel</H3> <PRE> public static void <B>setLogLevel</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> level)</PRE> <DL> <DD>Sets the logging level. This determines where the debugging output will be sent. Valid values are "none", "only", or "split". The default is "only". The default value will be set, if the <code>String</code> does not match.</DL> <HR> <A NAME="setProperties(java.util.Properties)"><!-- --></A><H3> setProperties</H3> <PRE> public static void <B>setProperties</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/util/Properties.html">Properties</A> props)</PRE> <DL> <DD>Sets the logging level from the supplied <code>Properties</code>. This looks for the "p4.log_level" property with the value of either "none", "split", or "only".</DL> <HR> <A NAME="setShowThread(boolean)"><!-- --></A><H3> setShowThread</H3> <PRE> public static void <B>setShowThread</B>(boolean show)</PRE> <DL> <DD>If set <code>true</code>, the thread number is included in all debugging output.</DL> <HR> <A NAME="verbose(java.lang.String)"><!-- --></A><H3> verbose</H3> <PRE> public static void <B>verbose</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> msg)</PRE> <DL> <DD>Displays a verbose message for debugging. If the debugging level is set below VERBOSE, then no message is displayed.<DD><DL> <DT><B>Parameters:</B><DD><CODE>msg</CODE> - The debugging notice message.</DL> </DD> </DL> <HR> <A NAME="verbose(java.lang.String, java.lang.String[])"><!-- --></A><H3> verbose</H3> <PRE> public static void <B>verbose</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> msg, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A>[] arry)</PRE> <DL> <DD>Displays a verbose message for debugging. If the debugging level is set below VERBOSE, then no message is displayed.<DD><DL> <DT><B>Parameters:</B><DD><CODE>msg</CODE> - The debugging notice message.<DD><CODE>arry</CODE> - Array containing useful debug information.</DL> </DD> </DL> <HR> <A NAME="warn(java.lang.String)"><!-- --></A><H3> warn</H3> <PRE> public static void <B>warn</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> msg)</PRE> <DL> <DD>Displays a warning message for debugging. If the debugging level is set below WARNING, then no message is displayed.<DD><DL> <DT><B>Parameters:</B><DD><CODE>msg</CODE> - The debugging warning message.</DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_bottom"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Debug.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> <a target="_top" href="http://www.perforce.com/"><img alt="Perforce" border="0" height="44" width="151" src="doc-files/perforce_logo.gif"></a></EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../com/perforce/api/Counter.html"><B>PREV CLASS</B></A> <A HREF="../../../com/perforce/api/DirEntry.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Debug.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> <i><a href="doc-files/LICENSE.TXT">Copyright</a> © 2001, Perforce Software, All rights reserved.</i> </BODY> </HTML>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 5045 | John Kristian | copied from the current release | ||
//public/perforce/api/java/p4package/docs/com/perforce/api/Debug.html | |||||
#5 | 2002 | David Markley | Integrated the latest changes for p4package to the public depot. | ||
#4 | 1808 | David Markley |
Updated Env class and fixed fstat issues. Published new Javadocs. |
||
#3 | 1361 | David Markley | Added convenience methods to the Env class. | ||
#2 | 1334 | David Markley |
Added more example code. Added the Counter class. Corrected the filelog methods for the FileEntry class. |
||
#1 | 1043 | David Markley | Initial branch to public area. | ||
//guest/david_markley/p4package/docs/com/perforce/api/Debug.html | |||||
#2 | 1037 | David Markley | Updated the documentation. | ||
#1 | 1020 | David Markley |
Added Perforce Java API documentation. This is generated using JavaDoc. |