Java.Util.Logging.ILoggingMXBean.SetLoggerLevel Method
Sets the log level of a logger.

Syntax

[Android.Runtime.Register("setLoggerLevel", "(Ljava/lang/String;Ljava/lang/String;)V", "GetSetLoggerLevel_Ljava_lang_String_Ljava_lang_String_Handler:Java.Util.Logging.ILoggingMXBeanInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetLoggerLevel (string loggerName, string levelName)

See Also

Level.Parse(string)

Parameters

loggerName
the name of the logger to set the level on, which must not be null.
levelName
the level to set on the logger, which may be null.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif loggerName is not a registered logger or if levelName is not null and not valid.

Remarks

Sets the log level of a logger. LevelName set to null means the level is inherited from the nearest non-null ancestor.

[Android Documentation]

Requirements

Namespace: Java.Util.Logging
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1