Share via


ILoggingMXBean.SetLoggerLevel(String, String) Method

Definition

Sets the specified logger to the specified new level.

[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);
[<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")>]
abstract member SetLoggerLevel : string * string -> unit

Parameters

loggerName
String

The name of the Logger to be set. Must be non-null.

levelName
String

The name of the level to set on the specified logger, or null if setting the level to inherit from its nearest ancestor.

Attributes

Exceptions

if loggerName is not a registered logger or if levelName is not null and not valid.

Remarks

Sets the specified logger to the specified new level. If the levelName is not null, the level of the specified logger is set to the parsed Level matching the levelName. If the levelName is null, the level of the specified logger is set to null and the effective level of the logger is inherited from its nearest ancestor with a specific (non-null) level value.

Java documentation for java.util.logging.LoggingMXBean.setLoggerLevel(java.lang.String, java.lang.String).

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.

Applies to

See also