LogManager.ReadConfiguration Method

Definition

Overloads

ReadConfiguration()

Reinitialize the logging properties and reread the logging configuration.

ReadConfiguration(Stream)

Reinitialize the logging properties and reread the logging configuration from the given stream, which should be in java.

ReadConfiguration()

Reinitialize the logging properties and reread the logging configuration.

[Android.Runtime.Register("readConfiguration", "()V", "GetReadConfigurationHandler")]
public virtual void ReadConfiguration ();
[<Android.Runtime.Register("readConfiguration", "()V", "GetReadConfigurationHandler")>]
abstract member ReadConfiguration : unit -> unit
override this.ReadConfiguration : unit -> unit
Attributes

Exceptions

if any IO related problems happened.

Remarks

Reinitialize the logging properties and reread the logging configuration.

The same rules are used for locating the configuration properties as are used at startup. So normally the logging properties will be re-read from the same file that was used at startup.

Any log level definitions in the new configuration file will be applied using Logger.setLevel(), if the target Logger exists.

A PropertyChangeEvent will be fired after the properties are read.

Java documentation for java.util.logging.LogManager.readConfiguration().

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

ReadConfiguration(Stream)

Reinitialize the logging properties and reread the logging configuration from the given stream, which should be in java.

[Android.Runtime.Register("readConfiguration", "(Ljava/io/InputStream;)V", "GetReadConfiguration_Ljava_io_InputStream_Handler")]
public virtual void ReadConfiguration (System.IO.Stream? ins);
[<Android.Runtime.Register("readConfiguration", "(Ljava/io/InputStream;)V", "GetReadConfiguration_Ljava_io_InputStream_Handler")>]
abstract member ReadConfiguration : System.IO.Stream -> unit
override this.ReadConfiguration : System.IO.Stream -> unit

Parameters

ins
Stream

stream to read properties from

Attributes

Exceptions

if any IO related problems happened.

Remarks

Reinitialize the logging properties and reread the logging configuration from the given stream, which should be in java.util.Properties format. A PropertyChangeEvent will be fired after the properties are read.

Any log level definitions in the new configuration file will be applied using Logger.setLevel(), if the target Logger exists.

Java documentation for java.util.logging.LogManager.readConfiguration(java.io.InputStream).

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