Język

ILog Interface

Definition

Caution

This class is obsoleted in this android platform

Abstracts the underlying logging API.

[Android.Runtime.Register("org/apache/commons/logging/Log", "", "Org.Apache.Commons.Logging.ILogInvoker")]
[System.Obsolete("This class is obsoleted in this android platform")]
public interface ILog : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("org/apache/commons/logging/Log", "", "Org.Apache.Commons.Logging.ILogInvoker")>]
[<System.Obsolete("This class is obsoleted in this android platform")>]
type ILog = interface
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Attributes
Implements

Remarks

Log levels are ordered from trace through fatal. Check the appropriate enabled property before constructing expensive log messages.

Properties

Name Description
Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
IsDebugEnabled

Gets whether debug logging is enabled by the underlying logger.

IsErrorEnabled

Gets whether error logging is enabled by the underlying logger.

IsFatalEnabled

Gets whether fatal logging is enabled by the underlying logger.

IsInfoEnabled

Gets whether info logging is enabled by the underlying logger.

IsTraceEnabled

Gets whether trace logging is enabled by the underlying logger.

IsWarnEnabled

Gets whether warn logging is enabled by the underlying logger.

JniIdentityHashCode

Returns the value of java.lang.System.identityHashCode() for the wrapped instance.

(Inherited from IJavaPeerable)
JniManagedPeerState

State of the managed peer.

(Inherited from IJavaPeerable)
JniObjectReferenceControlBlock (Inherited from IJavaPeerable)
JniPeerMembers

Member access and invocation support.

(Inherited from IJavaPeerable)
PeerReference

Returns a JniObjectReference of the wrapped Java object instance.

(Inherited from IJavaPeerable)

Methods

Name Description
Debug(Object, Throwable)

Logs a message and its cause at the debug level.

Debug(Object)

Logs a message at the debug level.

Disposed()

Called when the instance has been disposed.

(Inherited from IJavaPeerable)
DisposeUnlessReferenced()

If there are no outstanding references to this instance, then calls Dispose(); otherwise, does nothing.

(Inherited from IJavaPeerable)
Error(Object, Throwable)

Logs a message and its cause at the error level.

Error(Object)

Logs a message at the error level.

Fatal(Object, Throwable)

Logs a message and its cause at the fatal level.

Fatal(Object)

Logs a message at the fatal level.

Finalized()

Called when the instance has been finalized.

(Inherited from IJavaPeerable)
Info(Object, Throwable)

Logs a message and its cause at the info level.

Info(Object)

Logs a message at the info level.

SetJniIdentityHashCode(Int32)

Set the value returned by JniIdentityHashCode.

(Inherited from IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates) (Inherited from IJavaPeerable)
SetPeerReference(JniObjectReference)

Set the value returned by PeerReference.

(Inherited from IJavaPeerable)
Trace(Object, Throwable)

Logs a message and its cause at the trace level.

Trace(Object)

Logs a message at the trace level.

UnregisterFromRuntime()

Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.

(Inherited from IJavaPeerable)
Warn(Object, Throwable)

Logs a message and its cause at the warn level.

Warn(Object)

Logs a message at the warn level.

Extension Methods

Name Description
GetJniTypeName(IJavaPeerable)

Gets the JNI name of the type of the instance self.

JavaAs<TResult>(IJavaPeerable)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
TryJavaCast<TResult>(IJavaPeerable, TResult)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

Applies to