Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

oracle.ojc.interfaces
Interface Log2

All Superinterfaces:
Log

public interface Log2
extends Log

The Log2 interface supplies an abstract layer for logging messages, errors and warnings.
Log2 extends the Log interface, adding methods to print errors and warnings that are not associated with a source.


Method Summary
 void printError(java.lang.String errorMessage)
          Prints an error message.
 void printWarning(java.lang.String warningMessage)
          Prints a warning message.
 
Methods inherited from interface oracle.ojc.interfaces.Log
nerrors, nwarnings, print, printError, println, printWarning, redirect
 

Method Detail

printError

void printError(java.lang.String errorMessage)
Prints an error message. This is just the actual error message, such as "File does not exist". The caller is responsible for prefixing the message, for instance with "Error: ".

Parameters:
errorMessage - The error message

printWarning

void printWarning(java.lang.String warningMessage)
Prints a warning message. This is just the actual warning message, such as "File does not exist". The caller is responsible for prefixing the message, for instance with "Warning: ".

Parameters:
warningMessage - The warning message

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.