OracleJavaScript API Reference for Oracle ADF Faces

 

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

oracle.adfinternal.view.js.agent.edge
Class AdfEdgeLogWriter

Warning:

org.ecmascript.object.Object
   |
   +--oracle.adf.view.js.base.AdfObject
         |
         +--oracle.adf.view.js.logging.AdfLogWriter
               |
               +--oracle.adfinternal.view.js.agent.edge.AdfEdgeLogWriter

public class AdfEdgeLogWriter
extends AdfLogWriter
AdfLogWriter subclass that writes the logged messages to the developer tools console. See For documentation on using Edge's console.


Field Summary

private Object
_backupLogWriter

Fields inherited from oracle.adf.view.js.base.AdfObject

constructor, superclass

Fields inherited from org.ecmascript.object.Object

prototype

Constructor Summary

public
AdfEdgeLogWriter(Object parentWindow, Object backupLogWriter)
AdfLogWriter subclass that writes the logged messages to the developer tools console.

Method Summary

private static Object
_assertionHook(Object message, Object skipLevel, Object reason)
Hook to call before original AdfAssert.assertionFailed() code in order to take advantage of logging stack capabilities.
public Object
close()
Close the AdfLogWriter and free all associated resources.
public Object
flush()
Flush any buffered output.
protected Object
Init(Object parentWindow, Object backupLogWriter)
Initializes the instance.
private Object
_logInternalError(Object ex, Object message)
Logs an internal error to to the backup AdfLogWriter
protected Object
PublishImpl(AdfLogRecord logRecord)
Write the record to the developer tools console

Methods inherited from oracle.adf.view.js.logging.AdfLogWriter

CheckIfClosed, FormatError, FormatLevel, FormatLogRecord, FormatMessage, FormatWhen, getFilter, publish, setFilter

Methods inherited from oracle.adf.view.js.base.AdfObject

adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, exportPrototypeSymbol, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toDebugString, toString

Field Detail


_backupLogWriter

private Object _backupLogWriter

Constructor Detail


AdfEdgeLogWriter

public AdfEdgeLogWriter(Object parentWindow,
                        Object backupLogWriter)

AdfLogWriter subclass that writes the logged messages to the developer tools console. See For documentation on using Edge's console.

Parameters:
parentWindow  
backupLogWriter  

Method Detail


_assertionHook

private static Object _assertionHook(Object message,
                                     Object skipLevel,
                                     Object reason)

Hook to call before original AdfAssert.assertionFailed() code in order to take advantage of logging stack capabilities.

Parameters:
message  
skipLevel  
reason  
Return:
Object

close

public Object close()

Close the AdfLogWriter and free all associated resources.

The close method will perform a flush and then close the AdfLogWriter. After close has been called this AdfLogWriter should no longer be used. Method calls may either be silently ignored or may throw runtime exceptions.


Return:
Object
Overrides:
AdfLogWriter.close()

flush

public Object flush()

Flush any buffered output.

Return:
Object
Overrides:
AdfLogWriter.flush()

Init

protected Object Init(Object parentWindow,
                      Object backupLogWriter)

Initializes the instance. Subclasses of AdfObject must call their superclass' Init

Parameters:
parentWindow  
backupLogWriter  
Return:
Object
Overrides:
AdfObject.Init()

_logInternalError

private Object _logInternalError(Object ex,
                                 Object message)

Logs an internal error to to the backup AdfLogWriter

Parameters:
ex  
message  
Return:
Object

PublishImpl

protected Object PublishImpl(AdfLogRecord logRecord)

Write the record to the developer tools console

Parameters:
logRecord - The AdfLogRecord to publish to the AdfLogWriter
Return:
Object
Overrides:
AdfLogWriter.PublishImpl(Object)

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

 

Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.