ILoggingMXBean.SetLoggerLevel(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.