source: other-projects/trunk/gs3-release-maker/apache-ant-1.6.5/build/javadocs/org/apache/tools/ant/DefaultLogger.html@ 14627

Last change on this file since 14627 was 14627, checked in by oranfry, 17 years ago

initial import of the gs3-release-maker

File size: 32.2 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<!-- Generated by javadoc (build 1.4.2_13) on Mon Oct 01 14:33:14 NZST 2007 -->
6<TITLE>
7DefaultLogger (Apache Ant API)
8</TITLE>
9
10<META NAME="keywords" CONTENT="org.apache.tools.ant.DefaultLogger class">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17 parent.document.title="DefaultLogger (Apache Ant API)";
18}
19</SCRIPT>
20
21</HEAD>
22
23<BODY BGCOLOR="white" onload="windowTitle();">
24
25
26<!-- ========= START OF TOP NAVBAR ======= -->
27<A NAME="navbar_top"><!-- --></A>
28<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30<TR>
31<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32<A NAME="navbar_top_firstrow"><!-- --></A>
33<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34 <TR ALIGN="center" VALIGN="top">
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
42 </TR>
43</TABLE>
44</TD>
45<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
46</EM>
47</TD>
48</TR>
49
50<TR>
51<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
52&nbsp;<A HREF="../../../../org/apache/tools/ant/ComponentHelper.html" title="class in org.apache.tools.ant"><B>PREV CLASS</B></A>&nbsp;
53&nbsp;<A HREF="../../../../org/apache/tools/ant/DemuxInputStream.html" title="class in org.apache.tools.ant"><B>NEXT CLASS</B></A></FONT></TD>
54<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
55 <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
56&nbsp;<A HREF="DefaultLogger.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
57&nbsp;<SCRIPT type="text/javascript">
58 <!--
59 if(window==top) {
60 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
61 }
62 //-->
63</SCRIPT>
64<NOSCRIPT>
65 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
66</NOSCRIPT>
67
68</FONT></TD>
69</TR>
70<TR>
71<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
72 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
73<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
74DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
75</TR>
76</TABLE>
77<A NAME="skip-navbar_top"></A>
78<!-- ========= END OF TOP NAVBAR ========= -->
79
80<HR>
81<!-- ======== START OF CLASS DATA ======== -->
82<H2>
83<FONT SIZE="-1">
84org.apache.tools.ant</FONT>
85<BR>
86Class DefaultLogger</H2>
87<PRE>
88java.lang.Object
89 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.DefaultLogger</B>
90</PRE>
91<DL>
92<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/apache/tools/ant/BuildListener.html" title="interface in org.apache.tools.ant">BuildListener</A>, <A HREF="../../../../org/apache/tools/ant/BuildLogger.html" title="interface in org.apache.tools.ant">BuildLogger</A>, java.util.EventListener</DD>
93</DL>
94<DL>
95<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/tools/ant/listener/AnsiColorLogger.html" title="class in org.apache.tools.ant.listener">AnsiColorLogger</A>, <A HREF="../../../../org/apache/tools/ant/listener/MailLogger.html" title="class in org.apache.tools.ant.listener">MailLogger</A>, <A HREF="../../../../org/apache/tools/ant/NoBannerLogger.html" title="class in org.apache.tools.ant">NoBannerLogger</A></DD>
96</DL>
97<HR>
98<DL>
99<DT>public class <B>DefaultLogger</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../org/apache/tools/ant/BuildLogger.html" title="interface in org.apache.tools.ant">BuildLogger</A></DL>
100
101<P>
102Writes build events to a PrintStream. Currently, it
103 only writes which targets are being executed, and
104 any messages that get logged.
105<P>
106
107<P>
108<HR>
109
110<P>
111<!-- ======== NESTED CLASS SUMMARY ======== -->
112
113
114<!-- =========== FIELD SUMMARY =========== -->
115
116<A NAME="field_summary"><!-- --></A>
117<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
118<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
119<TD COLSPAN=2><FONT SIZE="+2">
120<B>Field Summary</B></FONT></TD>
121</TR>
122<TR BGCOLOR="white" CLASS="TableRowColor">
123<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
124<CODE>protected &nbsp;boolean</CODE></FONT></TD>
125<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#emacsMode">emacsMode</A></B></CODE>
126
127<BR>
128&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Whether or not to use emacs-style output</TD>
129</TR>
130<TR BGCOLOR="white" CLASS="TableRowColor">
131<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
132<CODE>protected &nbsp;java.io.PrintStream</CODE></FONT></TD>
133<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#err">err</A></B></CODE>
134
135<BR>
136&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PrintStream to write error messages to</TD>
137</TR>
138<TR BGCOLOR="white" CLASS="TableRowColor">
139<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
140<CODE>static&nbsp;int</CODE></FONT></TD>
141<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#LEFT_COLUMN_SIZE">LEFT_COLUMN_SIZE</A></B></CODE>
142
143<BR>
144&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Size of left-hand column for right-justified task name.</TD>
145</TR>
146<TR BGCOLOR="white" CLASS="TableRowColor">
147<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
148<CODE>protected static&nbsp;java.lang.String</CODE></FONT></TD>
149<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#lSep">lSep</A></B></CODE>
150
151<BR>
152&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Line separator</TD>
153</TR>
154<TR BGCOLOR="white" CLASS="TableRowColor">
155<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
156<CODE>protected &nbsp;int</CODE></FONT></TD>
157<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#msgOutputLevel">msgOutputLevel</A></B></CODE>
158
159<BR>
160&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lowest level of message to write out</TD>
161</TR>
162<TR BGCOLOR="white" CLASS="TableRowColor">
163<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164<CODE>protected &nbsp;java.io.PrintStream</CODE></FONT></TD>
165<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#out">out</A></B></CODE>
166
167<BR>
168&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PrintStream to write non-error messages to</TD>
169</TR>
170</TABLE>
171&nbsp;
172<!-- ======== CONSTRUCTOR SUMMARY ======== -->
173
174<A NAME="constructor_summary"><!-- --></A>
175<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
176<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
177<TD COLSPAN=2><FONT SIZE="+2">
178<B>Constructor Summary</B></FONT></TD>
179</TR>
180<TR BGCOLOR="white" CLASS="TableRowColor">
181<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#DefaultLogger()">DefaultLogger</A></B>()</CODE>
182
183<BR>
184&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sole constructor.</TD>
185</TR>
186</TABLE>
187&nbsp;
188<!-- ========== METHOD SUMMARY =========== -->
189
190<A NAME="method_summary"><!-- --></A>
191<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
192<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
193<TD COLSPAN=2><FONT SIZE="+2">
194<B>Method Summary</B></FONT></TD>
195</TR>
196<TR BGCOLOR="white" CLASS="TableRowColor">
197<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
198<CODE>&nbsp;void</CODE></FONT></TD>
199<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#buildFinished(org.apache.tools.ant.BuildEvent)">buildFinished</A></B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A>&nbsp;event)</CODE>
200
201<BR>
202&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints whether the build succeeded or failed,
203 any errors the occurred during the build, and
204 how long the build took.</TD>
205</TR>
206<TR BGCOLOR="white" CLASS="TableRowColor">
207<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
208<CODE>&nbsp;void</CODE></FONT></TD>
209<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#buildStarted(org.apache.tools.ant.BuildEvent)">buildStarted</A></B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A>&nbsp;event)</CODE>
210
211<BR>
212&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Responds to a build being started by just remembering the current time.</TD>
213</TR>
214<TR BGCOLOR="white" CLASS="TableRowColor">
215<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
216<CODE>protected static&nbsp;java.lang.String</CODE></FONT></TD>
217<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#formatTime(long)">formatTime</A></B>(long&nbsp;millis)</CODE>
218
219<BR>
220&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convenience method to format a specified length of time.</TD>
221</TR>
222<TR BGCOLOR="white" CLASS="TableRowColor">
223<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
224<CODE>protected &nbsp;void</CODE></FONT></TD>
225<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#log(java.lang.String)">log</A></B>(java.lang.String&nbsp;message)</CODE>
226
227<BR>
228&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Empty implementation which allows subclasses to receive the
229 same output that is generated here.</TD>
230</TR>
231<TR BGCOLOR="white" CLASS="TableRowColor">
232<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
233<CODE>&nbsp;void</CODE></FONT></TD>
234<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#messageLogged(org.apache.tools.ant.BuildEvent)">messageLogged</A></B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A>&nbsp;event)</CODE>
235
236<BR>
237&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Logs a message, if the priority is suitable.</TD>
238</TR>
239<TR BGCOLOR="white" CLASS="TableRowColor">
240<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241<CODE>protected &nbsp;void</CODE></FONT></TD>
242<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#printMessage(java.lang.String, java.io.PrintStream, int)">printMessage</A></B>(java.lang.String&nbsp;message,
243 java.io.PrintStream&nbsp;stream,
244 int&nbsp;priority)</CODE>
245
246<BR>
247&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints a message to a PrintStream.</TD>
248</TR>
249<TR BGCOLOR="white" CLASS="TableRowColor">
250<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
251<CODE>&nbsp;void</CODE></FONT></TD>
252<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#setEmacsMode(boolean)">setEmacsMode</A></B>(boolean&nbsp;emacsMode)</CODE>
253
254<BR>
255&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets this logger to produce emacs (and other editor) friendly output.</TD>
256</TR>
257<TR BGCOLOR="white" CLASS="TableRowColor">
258<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
259<CODE>&nbsp;void</CODE></FONT></TD>
260<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#setErrorPrintStream(java.io.PrintStream)">setErrorPrintStream</A></B>(java.io.PrintStream&nbsp;err)</CODE>
261
262<BR>
263&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the output stream to which this logger is to send error messages.</TD>
264</TR>
265<TR BGCOLOR="white" CLASS="TableRowColor">
266<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
267<CODE>&nbsp;void</CODE></FONT></TD>
268<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#setMessageOutputLevel(int)">setMessageOutputLevel</A></B>(int&nbsp;level)</CODE>
269
270<BR>
271&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the highest level of message this logger should respond to.</TD>
272</TR>
273<TR BGCOLOR="white" CLASS="TableRowColor">
274<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
275<CODE>&nbsp;void</CODE></FONT></TD>
276<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#setOutputPrintStream(java.io.PrintStream)">setOutputPrintStream</A></B>(java.io.PrintStream&nbsp;output)</CODE>
277
278<BR>
279&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the output stream to which this logger is to send its output.</TD>
280</TR>
281<TR BGCOLOR="white" CLASS="TableRowColor">
282<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
283<CODE>&nbsp;void</CODE></FONT></TD>
284<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#targetFinished(org.apache.tools.ant.BuildEvent)">targetFinished</A></B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A>&nbsp;event)</CODE>
285
286<BR>
287&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No-op implementation.</TD>
288</TR>
289<TR BGCOLOR="white" CLASS="TableRowColor">
290<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
291<CODE>&nbsp;void</CODE></FONT></TD>
292<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#targetStarted(org.apache.tools.ant.BuildEvent)">targetStarted</A></B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A>&nbsp;event)</CODE>
293
294<BR>
295&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Logs a message to say that the target has started if this
296 logger allows information-level messages.</TD>
297</TR>
298<TR BGCOLOR="white" CLASS="TableRowColor">
299<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
300<CODE>&nbsp;void</CODE></FONT></TD>
301<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#taskFinished(org.apache.tools.ant.BuildEvent)">taskFinished</A></B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A>&nbsp;event)</CODE>
302
303<BR>
304&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No-op implementation.</TD>
305</TR>
306<TR BGCOLOR="white" CLASS="TableRowColor">
307<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
308<CODE>&nbsp;void</CODE></FONT></TD>
309<TD><CODE><B><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#taskStarted(org.apache.tools.ant.BuildEvent)">taskStarted</A></B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A>&nbsp;event)</CODE>
310
311<BR>
312&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No-op implementation.</TD>
313</TR>
314</TABLE>
315&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
316<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
317<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
318<TD><B>Methods inherited from class java.lang.Object</B></TD>
319</TR>
320<TR BGCOLOR="white" CLASS="TableRowColor">
321<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
322</TR>
323</TABLE>
324&nbsp;
325<P>
326
327<!-- ============ FIELD DETAIL =========== -->
328
329<A NAME="field_detail"><!-- --></A>
330<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
331<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
332<TD COLSPAN=1><FONT SIZE="+2">
333<B>Field Detail</B></FONT></TD>
334</TR>
335</TABLE>
336
337<A NAME="LEFT_COLUMN_SIZE"><!-- --></A><H3>
338LEFT_COLUMN_SIZE</H3>
339<PRE>
340public static final int <B>LEFT_COLUMN_SIZE</B></PRE>
341<DL>
342<DD>Size of left-hand column for right-justified task name.
343<P>
344<DL>
345<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/tools/ant/DefaultLogger.html#messageLogged(org.apache.tools.ant.BuildEvent)"><CODE>messageLogged(BuildEvent)</CODE></A>,
346<A HREF="../../../../constant-values.html#org.apache.tools.ant.DefaultLogger.LEFT_COLUMN_SIZE">Constant Field Values</A></DL>
347</DL>
348<HR>
349
350<A NAME="out"><!-- --></A><H3>
351out</H3>
352<PRE>
353protected java.io.PrintStream <B>out</B></PRE>
354<DL>
355<DD>PrintStream to write non-error messages to
356<P>
357<DL>
358</DL>
359</DL>
360<HR>
361
362<A NAME="err"><!-- --></A><H3>
363err</H3>
364<PRE>
365protected java.io.PrintStream <B>err</B></PRE>
366<DL>
367<DD>PrintStream to write error messages to
368<P>
369<DL>
370</DL>
371</DL>
372<HR>
373
374<A NAME="msgOutputLevel"><!-- --></A><H3>
375msgOutputLevel</H3>
376<PRE>
377protected int <B>msgOutputLevel</B></PRE>
378<DL>
379<DD>Lowest level of message to write out
380<P>
381<DL>
382</DL>
383</DL>
384<HR>
385
386<A NAME="lSep"><!-- --></A><H3>
387lSep</H3>
388<PRE>
389protected static final java.lang.String <B>lSep</B></PRE>
390<DL>
391<DD>Line separator
392<P>
393<DL>
394</DL>
395</DL>
396<HR>
397
398<A NAME="emacsMode"><!-- --></A><H3>
399emacsMode</H3>
400<PRE>
401protected boolean <B>emacsMode</B></PRE>
402<DL>
403<DD>Whether or not to use emacs-style output
404<P>
405<DL>
406</DL>
407</DL>
408
409<!-- ========= CONSTRUCTOR DETAIL ======== -->
410
411<A NAME="constructor_detail"><!-- --></A>
412<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
413<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
414<TD COLSPAN=1><FONT SIZE="+2">
415<B>Constructor Detail</B></FONT></TD>
416</TR>
417</TABLE>
418
419<A NAME="DefaultLogger()"><!-- --></A><H3>
420DefaultLogger</H3>
421<PRE>
422public <B>DefaultLogger</B>()</PRE>
423<DL>
424<DD>Sole constructor.
425<P>
426</DL>
427
428<!-- ============ METHOD DETAIL ========== -->
429
430<A NAME="method_detail"><!-- --></A>
431<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
432<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
433<TD COLSPAN=1><FONT SIZE="+2">
434<B>Method Detail</B></FONT></TD>
435</TR>
436</TABLE>
437
438<A NAME="setMessageOutputLevel(int)"><!-- --></A><H3>
439setMessageOutputLevel</H3>
440<PRE>
441public void <B>setMessageOutputLevel</B>(int&nbsp;level)</PRE>
442<DL>
443<DD>Sets the highest level of message this logger should respond to.
444
445 Only messages with a message level lower than or equal to the
446 given level should be written to the log.
447 <P>
448 Constants for the message levels are in the
449 <A HREF="../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant"><CODE>Project</CODE></A> class. The order of the levels, from least
450 to most verbose, is <code>MSG_ERR</code>, <code>MSG_WARN</code>,
451 <code>MSG_INFO</code>, <code>MSG_VERBOSE</code>,
452 <code>MSG_DEBUG</code>.
453 <P>
454 The default message level for DefaultLogger is Project.MSG_ERR.
455<P>
456<DD><DL>
457<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildLogger.html#setMessageOutputLevel(int)">setMessageOutputLevel</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/BuildLogger.html" title="interface in org.apache.tools.ant">BuildLogger</A></CODE></DL>
458</DD>
459<DD><DL>
460<DT><B>Parameters:</B><DD><CODE>level</CODE> - the logging level for the logger.</DL>
461</DD>
462</DL>
463<HR>
464
465<A NAME="setOutputPrintStream(java.io.PrintStream)"><!-- --></A><H3>
466setOutputPrintStream</H3>
467<PRE>
468public void <B>setOutputPrintStream</B>(java.io.PrintStream&nbsp;output)</PRE>
469<DL>
470<DD>Sets the output stream to which this logger is to send its output.
471<P>
472<DD><DL>
473<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildLogger.html#setOutputPrintStream(java.io.PrintStream)">setOutputPrintStream</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/BuildLogger.html" title="interface in org.apache.tools.ant">BuildLogger</A></CODE></DL>
474</DD>
475<DD><DL>
476<DT><B>Parameters:</B><DD><CODE>output</CODE> - The output stream for the logger.
477 Must not be <code>null</code>.</DL>
478</DD>
479</DL>
480<HR>
481
482<A NAME="setErrorPrintStream(java.io.PrintStream)"><!-- --></A><H3>
483setErrorPrintStream</H3>
484<PRE>
485public void <B>setErrorPrintStream</B>(java.io.PrintStream&nbsp;err)</PRE>
486<DL>
487<DD>Sets the output stream to which this logger is to send error messages.
488<P>
489<DD><DL>
490<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildLogger.html#setErrorPrintStream(java.io.PrintStream)">setErrorPrintStream</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/BuildLogger.html" title="interface in org.apache.tools.ant">BuildLogger</A></CODE></DL>
491</DD>
492<DD><DL>
493<DT><B>Parameters:</B><DD><CODE>err</CODE> - The error stream for the logger.
494 Must not be <code>null</code>.</DL>
495</DD>
496</DL>
497<HR>
498
499<A NAME="setEmacsMode(boolean)"><!-- --></A><H3>
500setEmacsMode</H3>
501<PRE>
502public void <B>setEmacsMode</B>(boolean&nbsp;emacsMode)</PRE>
503<DL>
504<DD>Sets this logger to produce emacs (and other editor) friendly output.
505<P>
506<DD><DL>
507<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildLogger.html#setEmacsMode(boolean)">setEmacsMode</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/BuildLogger.html" title="interface in org.apache.tools.ant">BuildLogger</A></CODE></DL>
508</DD>
509<DD><DL>
510<DT><B>Parameters:</B><DD><CODE>emacsMode</CODE> - <code>true</code> if output is to be unadorned so that
511 emacs and other editors can parse files names, etc.</DL>
512</DD>
513</DL>
514<HR>
515
516<A NAME="buildStarted(org.apache.tools.ant.BuildEvent)"><!-- --></A><H3>
517buildStarted</H3>
518<PRE>
519public void <B>buildStarted</B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A>&nbsp;event)</PRE>
520<DL>
521<DD>Responds to a build being started by just remembering the current time.
522<P>
523<DD><DL>
524<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html#buildStarted(org.apache.tools.ant.BuildEvent)">buildStarted</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html" title="interface in org.apache.tools.ant">BuildListener</A></CODE></DL>
525</DD>
526<DD><DL>
527<DT><B>Parameters:</B><DD><CODE>event</CODE> - Ignored.</DL>
528</DD>
529</DL>
530<HR>
531
532<A NAME="buildFinished(org.apache.tools.ant.BuildEvent)"><!-- --></A><H3>
533buildFinished</H3>
534<PRE>
535public void <B>buildFinished</B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A>&nbsp;event)</PRE>
536<DL>
537<DD>Prints whether the build succeeded or failed,
538 any errors the occurred during the build, and
539 how long the build took.
540<P>
541<DD><DL>
542<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html#buildFinished(org.apache.tools.ant.BuildEvent)">buildFinished</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html" title="interface in org.apache.tools.ant">BuildListener</A></CODE></DL>
543</DD>
544<DD><DL>
545<DT><B>Parameters:</B><DD><CODE>event</CODE> - An event with any relevant extra information.
546 Must not be <code>null</code>.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/tools/ant/BuildEvent.html#getException()"><CODE>BuildEvent.getException()</CODE></A></DL>
547</DD>
548</DL>
549<HR>
550
551<A NAME="targetStarted(org.apache.tools.ant.BuildEvent)"><!-- --></A><H3>
552targetStarted</H3>
553<PRE>
554public void <B>targetStarted</B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A>&nbsp;event)</PRE>
555<DL>
556<DD>Logs a message to say that the target has started if this
557 logger allows information-level messages.
558<P>
559<DD><DL>
560<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html#targetStarted(org.apache.tools.ant.BuildEvent)">targetStarted</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html" title="interface in org.apache.tools.ant">BuildListener</A></CODE></DL>
561</DD>
562<DD><DL>
563<DT><B>Parameters:</B><DD><CODE>event</CODE> - An event with any relevant extra information.
564 Must not be <code>null</code>.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/tools/ant/BuildEvent.html#getTarget()"><CODE>BuildEvent.getTarget()</CODE></A></DL>
565</DD>
566</DL>
567<HR>
568
569<A NAME="targetFinished(org.apache.tools.ant.BuildEvent)"><!-- --></A><H3>
570targetFinished</H3>
571<PRE>
572public void <B>targetFinished</B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A>&nbsp;event)</PRE>
573<DL>
574<DD>No-op implementation.
575<P>
576<DD><DL>
577<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html#targetFinished(org.apache.tools.ant.BuildEvent)">targetFinished</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html" title="interface in org.apache.tools.ant">BuildListener</A></CODE></DL>
578</DD>
579<DD><DL>
580<DT><B>Parameters:</B><DD><CODE>event</CODE> - Ignored.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/tools/ant/BuildEvent.html#getException()"><CODE>BuildEvent.getException()</CODE></A></DL>
581</DD>
582</DL>
583<HR>
584
585<A NAME="taskStarted(org.apache.tools.ant.BuildEvent)"><!-- --></A><H3>
586taskStarted</H3>
587<PRE>
588public void <B>taskStarted</B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A>&nbsp;event)</PRE>
589<DL>
590<DD>No-op implementation.
591<P>
592<DD><DL>
593<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html#taskStarted(org.apache.tools.ant.BuildEvent)">taskStarted</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html" title="interface in org.apache.tools.ant">BuildListener</A></CODE></DL>
594</DD>
595<DD><DL>
596<DT><B>Parameters:</B><DD><CODE>event</CODE> - Ignored.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/tools/ant/BuildEvent.html#getTask()"><CODE>BuildEvent.getTask()</CODE></A></DL>
597</DD>
598</DL>
599<HR>
600
601<A NAME="taskFinished(org.apache.tools.ant.BuildEvent)"><!-- --></A><H3>
602taskFinished</H3>
603<PRE>
604public void <B>taskFinished</B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A>&nbsp;event)</PRE>
605<DL>
606<DD>No-op implementation.
607<P>
608<DD><DL>
609<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html#taskFinished(org.apache.tools.ant.BuildEvent)">taskFinished</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html" title="interface in org.apache.tools.ant">BuildListener</A></CODE></DL>
610</DD>
611<DD><DL>
612<DT><B>Parameters:</B><DD><CODE>event</CODE> - Ignored.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/tools/ant/BuildEvent.html#getException()"><CODE>BuildEvent.getException()</CODE></A></DL>
613</DD>
614</DL>
615<HR>
616
617<A NAME="messageLogged(org.apache.tools.ant.BuildEvent)"><!-- --></A><H3>
618messageLogged</H3>
619<PRE>
620public void <B>messageLogged</B>(<A HREF="../../../../org/apache/tools/ant/BuildEvent.html" title="class in org.apache.tools.ant">BuildEvent</A>&nbsp;event)</PRE>
621<DL>
622<DD>Logs a message, if the priority is suitable.
623 In non-emacs mode, task level messages are prefixed by the
624 task name which is right-justified.
625<P>
626<DD><DL>
627<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html#messageLogged(org.apache.tools.ant.BuildEvent)">messageLogged</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/ant/BuildListener.html" title="interface in org.apache.tools.ant">BuildListener</A></CODE></DL>
628</DD>
629<DD><DL>
630<DT><B>Parameters:</B><DD><CODE>event</CODE> - A BuildEvent containing message information.
631 Must not be <code>null</code>.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/tools/ant/BuildEvent.html#getMessage()"><CODE>BuildEvent.getMessage()</CODE></A>,
632<A HREF="../../../../org/apache/tools/ant/BuildEvent.html#getPriority()"><CODE>BuildEvent.getPriority()</CODE></A></DL>
633</DD>
634</DL>
635<HR>
636
637<A NAME="formatTime(long)"><!-- --></A><H3>
638formatTime</H3>
639<PRE>
640protected static java.lang.String <B>formatTime</B>(long&nbsp;millis)</PRE>
641<DL>
642<DD>Convenience method to format a specified length of time.
643<P>
644<DD><DL>
645</DL>
646</DD>
647<DD><DL>
648<DT><B>Parameters:</B><DD><CODE>millis</CODE> - Length of time to format, in milliseconds.
649<DT><B>Returns:</B><DD>the time as a formatted string.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/tools/ant/util/DateUtils.html#formatElapsedTime(long)"><CODE>DateUtils.formatElapsedTime(long)</CODE></A></DL>
650</DD>
651</DL>
652<HR>
653
654<A NAME="printMessage(java.lang.String, java.io.PrintStream, int)"><!-- --></A><H3>
655printMessage</H3>
656<PRE>
657protected void <B>printMessage</B>(java.lang.String&nbsp;message,
658 java.io.PrintStream&nbsp;stream,
659 int&nbsp;priority)</PRE>
660<DL>
661<DD>Prints a message to a PrintStream.
662<P>
663<DD><DL>
664</DL>
665</DD>
666<DD><DL>
667<DT><B>Parameters:</B><DD><CODE>message</CODE> - The message to print.
668 Should not be <code>null</code>.<DD><CODE>stream</CODE> - A PrintStream to print the message to.
669 Must not be <code>null</code>.<DD><CODE>priority</CODE> - The priority of the message.
670 (Ignored in this implementation.)</DL>
671</DD>
672</DL>
673<HR>
674
675<A NAME="log(java.lang.String)"><!-- --></A><H3>
676log</H3>
677<PRE>
678protected void <B>log</B>(java.lang.String&nbsp;message)</PRE>
679<DL>
680<DD>Empty implementation which allows subclasses to receive the
681 same output that is generated here.
682<P>
683<DD><DL>
684</DL>
685</DD>
686<DD><DL>
687<DT><B>Parameters:</B><DD><CODE>message</CODE> - Message being logged. Should not be <code>null</code>.</DL>
688</DD>
689</DL>
690<!-- ========= END OF CLASS DATA ========= -->
691<HR>
692
693
694<!-- ======= START OF BOTTOM NAVBAR ====== -->
695<A NAME="navbar_bottom"><!-- --></A>
696<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
697<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
698<TR>
699<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
700<A NAME="navbar_bottom_firstrow"><!-- --></A>
701<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
702 <TR ALIGN="center" VALIGN="top">
703 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
704 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
705 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
706 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
707 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
708 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
709 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
710 </TR>
711</TABLE>
712</TD>
713<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
714</EM>
715</TD>
716</TR>
717
718<TR>
719<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
720&nbsp;<A HREF="../../../../org/apache/tools/ant/ComponentHelper.html" title="class in org.apache.tools.ant"><B>PREV CLASS</B></A>&nbsp;
721&nbsp;<A HREF="../../../../org/apache/tools/ant/DemuxInputStream.html" title="class in org.apache.tools.ant"><B>NEXT CLASS</B></A></FONT></TD>
722<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
723 <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
724&nbsp;<A HREF="DefaultLogger.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
725&nbsp;<SCRIPT type="text/javascript">
726 <!--
727 if(window==top) {
728 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
729 }
730 //-->
731</SCRIPT>
732<NOSCRIPT>
733 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
734</NOSCRIPT>
735
736</FONT></TD>
737</TR>
738<TR>
739<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
740 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
741<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
742DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
743</TR>
744</TABLE>
745<A NAME="skip-navbar_bottom"></A>
746<!-- ======== END OF BOTTOM NAVBAR ======= -->
747
748<HR>
749Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
750</BODY>
751</HTML>
Note: See TracBrowser for help on using the repository browser.