01: package com.rimfaxe.thread;
02:
03: import java.io.*;
04: import java.util.Date;
05: import java.util.Vector;
06:
07: /**
08: * This is a stubbed out logger class to write to the console. This can be
09: * replaced with a real logger
10: *
11: */
12: public class ReportingLogger {
13: /* Members ----------------------------------------------------------------------------- */
14:
15: /* Constructors ------------------------------------------------------------------------ */
16: /** Empty constructor */
17: private ReportingLogger() {
18:
19: }
20:
21: /* External Functions ------------------------------------------------------------------ */
22:
23: /** Stubbed Debug Write
24: */
25: public synchronized static void logDebug(String aMessage) {
26:
27: //System.out.println("Debug Log : " + aMessage);
28: }
29:
30: /** Writes to all registered Error Logs
31: * @param aException Exception (if any) thrown. A string representation of the stack
32: trace will be generated and added to the error logs
33: * @param aMessage String message to log
34: */
35: public synchronized static void logError(String aMessage) {
36: //System.out.println("Error Log : " + aMessage);
37: }
38:
39: /* Internal Functions ------------------------------------------------------------------ */
40:
41: /* Debug Functions --------------------------------------------------------------------- */
42: public static void main(String[] args) {
43: ReportingLogger.logDebug("Test Stubbed Debug Logger");
44: ReportingLogger.logError("Test Stubbed Error Logger");
45: }
46: }
|