Example usage for java.sql DriverManager println

List of usage examples for java.sql DriverManager println

Introduction

In this page you can find the example usage for java.sql DriverManager println.

Prototype

public static void println(String message) 

Source Link

Document

Prints a message to the current JDBC log stream.

Usage

From source file:Logger.java

/**
 * Print a diagnostic message to the output stream provided by
 * the DataSource or the DriverManager.//from   w w  w  .j  ava  2 s . c  om
 *
 * @param message the diagnostic message to print
 */
public static void println(String message) {
    if (log != null) {
        log.println(message);
    } else {
        DriverManager.println(message);
    }
}