Level Class

Definition

The Level class defines a set of standard logging levels that can be used to control logging output.

[Android.Runtime.Register("java/util/logging/Level", DoNotGenerateAcw=true)]
public class Level : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.IO.ISerializable
[<Android.Runtime.Register("java/util/logging/Level", DoNotGenerateAcw=true)>]
type Level = class
    inherit Object
    interface ISerializable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
Level
Attributes
Implements

Remarks

The Level class defines a set of standard logging levels that can be used to control logging output. The logging Level objects are ordered and are specified by ordered integers. Enabling logging at a given level also enables logging at all higher levels.

Clients should normally use the predefined Level constants such as Level.SEVERE.

The levels in descending order are: <ul> <li>SEVERE (highest value) <li>WARNING <li>INFO <li>CONFIG <li>FINE <li>FINER <li>FINEST (lowest value) </ul> In addition there is a level OFF that can be used to turn off logging, and a level ALL that can be used to enable logging of all messages.

It is possible for third parties to define additional logging levels by subclassing Level. In such cases subclasses should take care to chose unique integer level values and to ensure that they maintain the Object uniqueness property across serialization by defining a suitable readResolve method.

Added in 1.4.

Java documentation for java.util.logging.Level.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

Level(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Level(String, Int32, String)

Create a named Level with a given integer value and a given localization resource name.

Level(String, Int32)

Create a named Level with a given integer value.

Properties

All

ALL indicates that all messages should be logged.

Class

Returns the runtime class of this Object.

(Inherited from Object)
Config

CONFIG is a message level for static configuration messages.

Fine

FINE is a message level providing tracing information.

Finer

FINER indicates a fairly detailed tracing message.

Finest

FINEST indicates a highly detailed tracing message.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
Info

INFO is a message level for informational messages.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
LocalizedName

Return the localized string name of the Level, for the current default locale.

Name

Return the non-localized string name of the Level.

Off

OFF is a special level that can be used to turn off logging.

PeerReference (Inherited from Object)
ResourceBundleName

Return the level's localization resource bundle name, or null if no localization bundle is defined.

Severe

SEVERE is a message level indicating a serious failure.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Warning

WARNING is a message level indicating a potential problem.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
IntValue()

Get the integer value for this level.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
Parse(String)

Parse a level name string into a Level.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of this Level.

UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to