<!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 EventLog </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/EventLog.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/Env.html"><B>PREV CLASS</B></A> <A HREF="../../../com/perforce/api/FileEntry.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="EventLog.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <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 EventLog</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.EventLog</B> </PRE> <HR> <DL> <DT>public class <B>EventLog</B><DT>extends <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A></DL> <P> This class controls an event log. A set number of log entries are kept in memory, but all log entries are sent to a log file. <P> <DL> <DT><B>Version: </B><DD>$Date: 2006/10/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 =========== --> <!-- ======== 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/EventLog.html#EventLog()">EventLog</A></B>()</CODE> <BR> Default, no-argument constructor.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../com/perforce/api/EventLog.html#EventLog(java.lang.String)">EventLog</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> title)</CODE> <BR> Constructor that accepts the title for this.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../com/perforce/api/EventLog.html#EventLog(java.lang.String, java.lang.String)">EventLog</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> title, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> filename)</CODE> <BR> Constructor that sets the log title and ouput filename.</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/EventLog.html#commonLog(java.lang.String)">commonLog</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> event)</CODE> <BR> Logs an event to the common log.</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/EventLog.html#commonLog(java.lang.String, java.lang.String)">commonLog</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> event, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> level)</CODE> <BR> Logs an event to the common log.</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/EventLog.html#commonLog(java.lang.String, java.lang.String, boolean)">commonLog</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> event, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> level, boolean encode)</CODE> <BR> Logs an event to the common log.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <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/EventLog.html#getFileName()">getFileName</A></B>()</CODE> <BR> Returns the output file name.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/util/Enumeration.html">Enumeration</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/EventLog.html#getLog()">getLog</A></B>()</CODE> <BR> Returns an Enumeration that contains all the events in the log.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/EventLog.html#getSize()">getSize</A></B>()</CODE> <BR> Returns the size of the event log memory.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <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/EventLog.html#getTitle()">getTitle</A></B>()</CODE> <BR> Gets the title of the log.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/EventLog.html#log(java.lang.String)">log</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> event)</CODE> <BR> Logs an event to this log.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/EventLog.html#log(java.lang.String, java.lang.String)">log</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> event, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> level)</CODE> <BR> Logs an event to this log.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/EventLog.html#log(java.lang.String, java.lang.String, boolean)">log</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> event, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> level, boolean encode)</CODE> <BR> Logs an event to this log.</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/EventLog.html#printLog(com.perforce.api.EventLog, java.io.PrintWriter, java.lang.String)">printLog</A></B>(<A HREF="../../../com/perforce/api/EventLog.html">EventLog</A> elog, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/io/PrintWriter.html">PrintWriter</A> out, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> format)</CODE> <BR> Prints a log, using the specified format.</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/EventLog.html#printLog(java.io.PrintWriter, java.lang.String)">printLog</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/io/PrintWriter.html">PrintWriter</A> out, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> format)</CODE> <BR> Prints this log, using the specified format.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/EventLog.html#setSize(int)">setSize</A></B>(int size)</CODE> <BR> Sets the size of the log.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../com/perforce/api/EventLog.html#setTitle(java.lang.String)">setTitle</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> title)</CODE> <BR> Sets the title for this log.</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 =========== --> <!-- ========= 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="EventLog()"><!-- --></A><H3> EventLog</H3> <PRE> public <B>EventLog</B>()</PRE> <DL> <DD>Default, no-argument constructor. This initialized the Vector of events and the date and time format.<DD><DL> <DT><B>See Also: </B><DD><A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/util/Vector.html"><CODE>Vector</CODE></A></DL> </DD> </DL> <HR> <A NAME="EventLog(java.lang.String)"><!-- --></A><H3> EventLog</H3> <PRE> public <B>EventLog</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> title)</PRE> <DL> <DD>Constructor that accepts the title for this. The title is used when the webSend() method is invoked.<DD><DL> <DT><B>Parameters:</B><DD><CODE>title</CODE> - The title for this log.</DL> </DD> </DL> <HR> <A NAME="EventLog(java.lang.String, java.lang.String)"><!-- --></A><H3> EventLog</H3> <PRE> public <B>EventLog</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> title, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> filename)</PRE> <DL> <DD>Constructor that sets the log title and ouput filename.<DD><DL> <DT><B>Parameters:</B><DD><CODE>title</CODE> - The title for this log.<DD><CODE>filename</CODE> - Name for the output file.</DL> </DD> </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="commonLog(java.lang.String)"><!-- --></A><H3> commonLog</H3> <PRE> public static void <B>commonLog</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> event)</PRE> <DL> <DD>Logs an event to the common log. The event passed in is added to the log. If the log is beyond its maximum size, then the oldest events are dropped.<DD><DL> <DT><B>Parameters:</B><DD><CODE>event</CODE> - The event to be logged.</DL> </DD> </DL> <HR> <A NAME="commonLog(java.lang.String, java.lang.String)"><!-- --></A><H3> commonLog</H3> <PRE> public static void <B>commonLog</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> event, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> level)</PRE> <DL> <DD>Logs an event to the common log. The event passed in is added to the log. If the log is beyond its maximum size, then the oldest events are dropped.<DD><DL> <DT><B>Parameters:</B><DD><CODE>event</CODE> - The event to be logged.<DD><CODE>level</CODE> - Level for the logged event.</DL> </DD> </DL> <HR> <A NAME="commonLog(java.lang.String, java.lang.String, boolean)"><!-- --></A><H3> commonLog</H3> <PRE> public static void <B>commonLog</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> event, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> level, boolean encode)</PRE> <DL> <DD>Logs an event to the common log. The event passed in is added to the log. If the log is beyond its maximum size, then the oldest events are dropped.<DD><DL> <DT><B>Parameters:</B><DD><CODE>event</CODE> - The event to be logged.<DD><CODE>level</CODE> - Level for the logged event.<DD><CODE>encode</CODE> - Indicates that the output should be XML/HTML encoded.</DL> </DD> </DL> <HR> <A NAME="getFileName()"><!-- --></A><H3> getFileName</H3> <PRE> public <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> <B>getFileName</B>()</PRE> <DL> <DD>Returns the output file name.</DL> <HR> <A NAME="getLog()"><!-- --></A><H3> getLog</H3> <PRE> public <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/util/Enumeration.html">Enumeration</A> <B>getLog</B>()</PRE> <DL> <DD>Returns an Enumeration that contains all the events in the log.<DD><DL> <DT><B>Returns:</B><DD>List of Strings in the log.</DL> </DD> </DL> <HR> <A NAME="getSize()"><!-- --></A><H3> getSize</H3> <PRE> public int <B>getSize</B>()</PRE> <DL> <DD>Returns the size of the event log memory. This is the maximum number of lines that will be maintained in memory.</DL> <HR> <A NAME="getTitle()"><!-- --></A><H3> getTitle</H3> <PRE> public <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> <B>getTitle</B>()</PRE> <DL> <DD>Gets the title of the log.</DL> <HR> <A NAME="log(java.lang.String)"><!-- --></A><H3> log</H3> <PRE> public void <B>log</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> event)</PRE> <DL> <DD>Logs an event to this log. The event passed in is added to the log. If the log is beyond its maximum size, then the oldest events are dropped.<DD><DL> <DT><B>Parameters:</B><DD><CODE>event</CODE> - The event to be logged.</DL> </DD> </DL> <HR> <A NAME="log(java.lang.String, java.lang.String)"><!-- --></A><H3> log</H3> <PRE> public void <B>log</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> event, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> level)</PRE> <DL> <DD>Logs an event to this log. The event passed in is added to the log. If the log is beyond its maximum size, then the oldest events are dropped.<DD><DL> <DT><B>Parameters:</B><DD><CODE>event</CODE> - The event to be logged.<DD><CODE>level</CODE> - Level for the logged event.</DL> </DD> </DL> <HR> <A NAME="log(java.lang.String, java.lang.String, boolean)"><!-- --></A><H3> log</H3> <PRE> public void <B>log</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> event, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> level, boolean encode)</PRE> <DL> <DD>Logs an event to this log. The event passed in is added to the log. If the log is beyond its maximum size, then the oldest events are dropped.<DD><DL> <DT><B>Parameters:</B><DD><CODE>event</CODE> - The event to be logged.<DD><CODE>level</CODE> - Level for the logged event.<DD><CODE>encode</CODE> - Indicates that the output should be XML/HTML encoded.</DL> </DD> </DL> <HR> <A NAME="printLog(com.perforce.api.EventLog, java.io.PrintWriter, java.lang.String)"><!-- --></A><H3> printLog</H3> <PRE> public static void <B>printLog</B>(<A HREF="../../../com/perforce/api/EventLog.html">EventLog</A> elog, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/io/PrintWriter.html">PrintWriter</A> out, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> format)</PRE> <DL> <DD>Prints a log, using the specified format. Each line is placed in the format string where {0} occurs.<DD><DL> <DT><B>Parameters:</B><DD><CODE>elog</CODE> - <code>EventLog</code> to print.<DD><CODE>out</CODE> - Print output.<DD><CODE>format</CODE> - Format to use.<DT><B>See Also: </B><DD><CODE>java.text.MessageFormat</CODE></DL> </DD> </DL> <HR> <A NAME="printLog(java.io.PrintWriter, java.lang.String)"><!-- --></A><H3> printLog</H3> <PRE> public static void <B>printLog</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/io/PrintWriter.html">PrintWriter</A> out, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> format)</PRE> <DL> <DD>Prints this log, using the specified format. Each line is placed in the format string where {0} occurs.<DD><DL> <DT><B>Parameters:</B><DD><CODE>out</CODE> - Print output.<DD><CODE>format</CODE> - Format to use.<DT><B>See Also: </B><DD><CODE>java.text.MessageFormat</CODE></DL> </DD> </DL> <HR> <A NAME="setSize(int)"><!-- --></A><H3> setSize</H3> <PRE> public void <B>setSize</B>(int size)</PRE> <DL> <DD>Sets the size of the log. This is the maximum number of lines that the log will maintain in memory.<DD><DL> <DT><B>Parameters:</B><DD><CODE>size</CODE> - The number of lines to keep in the log.</DL> </DD> </DL> <HR> <A NAME="setTitle(java.lang.String)"><!-- --></A><H3> setTitle</H3> <PRE> public void <B>setTitle</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> title)</PRE> <DL> <DD>Sets the title for this log.<DD><DL> <DT><B>Parameters:</B><DD><CODE>title</CODE> - The title of the log.</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/EventLog.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/Env.html"><B>PREV CLASS</B></A> <A HREF="../../../com/perforce/api/FileEntry.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="EventLog.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <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 | 5702 | David Jones | Initial integration of the p4package | ||
//public/perforce/api/java/p4package/docs/com/perforce/api/EventLog.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/EventLog.html | |||||
#2 | 1037 | David Markley | Updated the documentation. | ||
#1 | 1020 | David Markley |
Added Perforce Java API documentation. This is generated using JavaDoc. |