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

E13403-08

oracle.ojc.interfaces
Interface Log

All Known Subinterfaces:
Log2

public interface Log

The log interface supplies an abstract layer for logging messages, errors and warnings.


Method Summary
 int nerrors()
          Returns the number of errors so far
 int nwarnings()
          Returns the number of warnings so far
 void print(java.lang.String string)
          Prints a string
 void printError(Storage source, int pos, ErrorInfo info)
          Prints an error message associated with a source
 void println(java.lang.String line)
          Prints a line
 void printWarning(Storage source, int pos, ErrorInfo info)
          Prints a warning message associated with a source
 void redirect(java.lang.String fileName)
          Redirects output into a file
 

Method Detail

redirect

void redirect(java.lang.String fileName)
Redirects output into a file

Parameters:
fileName - The name of the desired output file

print

void print(java.lang.String string)
Prints a string

Parameters:
string - The string to print

println

void println(java.lang.String line)
Prints a line

Parameters:
line - The line to print

printError

void printError(Storage source,
                int pos,
                ErrorInfo info)
Prints an error message associated with a source

Parameters:
source - The Storage associated with the error
pos - The error position in the source where the upper 16 bits contain the line number and the lower 16 bits the column
info - The ErrorInfo associated with the error

printWarning

void printWarning(Storage source,
                  int pos,
                  ErrorInfo info)
Prints a warning message associated with a source

Parameters:
source - The Storage associated with the warning
pos - The warning position in the source where the upper 16 bits contain the line number and the lower 16 bits the column
info - The ErrorInfo associated with the warning

nerrors

int nerrors()
Returns the number of errors so far

Returns:
the number of errors

nwarnings

int nwarnings()
Returns the number of warnings so far

Returns:
the number of warnings

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

E13403-08

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