DriverManager.LogStream Property

Definition

Caution

deprecated

Retrieves the logging/tracing PrintStream that is used by the DriverManager and all drivers. -or- Sets the logging/tracing PrintStream that is used by the DriverManager and all drivers.

[System.Obsolete("deprecated")]
public static Java.IO.PrintStream? LogStream { [Android.Runtime.Register("getLogStream", "()Ljava/io/PrintStream;", "")] get; [Android.Runtime.Register("setLogStream", "(Ljava/io/PrintStream;)V", "")] set; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getLogStream", "()Ljava/io/PrintStream;", "")>]
[<set: Android.Runtime.Register("setLogStream", "(Ljava/io/PrintStream;)V", "")>]
static member LogStream : Java.IO.PrintStream with get, set

Property Value

the logging/tracing PrintStream; if disabled, is null

Attributes

Remarks

Property getter documentation:

Retrieves the logging/tracing PrintStream that is used by the DriverManager and all drivers.

This member is deprecated. Use getLogWriter instead.

Java documentation for java.sql.DriverManager.getLogStream().

Property setter documentation:

Sets the logging/tracing PrintStream that is used by the DriverManager and all drivers.

In the Java 2 SDK, Standard Edition, version 1.3 release, this method checks to see that there is an SQLPermission object before setting the logging stream. If a SecurityManager exists and its checkPermission method denies setting the log writer, this method throws a java.lang.SecurityException.

This member is deprecated. Use setLogWriter instead.

Java documentation for java.sql.DriverManager.setLogStream(java.io.PrintStream).

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