All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.snowflake.client.log.StdOutConsoleHandler Maven / Gradle / Ivy

There is a newer version: 3.20.0
Show newest version
/*
 * Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
 */
package net.snowflake.client.log;

import java.util.logging.LogRecord;
import java.util.logging.SimpleFormatter;
import java.util.logging.StreamHandler;

class StdOutConsoleHandler extends StreamHandler {
  public StdOutConsoleHandler() {
    // configure with specific defaults for ConsoleHandler
    super(System.out, new SimpleFormatter());
  }

  @Override
  public void publish(LogRecord record) {
    super.publish(record);
    flush();
  }

  @Override
  public void close() {
    flush();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy