Package net.snowflake.client.log
Class SFLoggerFactory
- java.lang.Object
-
- net.snowflake.client.log.SFLoggerFactory
-
public class SFLoggerFactory extends Object
Used to create SFLogger instanceCreated by hyu on 11/17/16.
-
-
Constructor Summary
Constructors Constructor Description SFLoggerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SFLoggergetLogger(Class<?> clazz)static SFLoggergetLogger(String name)A replacement for getLogger function, whose parameter is Class<?>, when Class<?> is inaccessible.
-
-
-
Method Detail
-
getLogger
public static SFLogger getLogger(Class<?> clazz)
- Parameters:
clazz- Class type that the logger is instantiated- Returns:
- An SFLogger instance given the name of the class
-
getLogger
public static SFLogger getLogger(String name)
A replacement for getLogger function, whose parameter is Class<?>, when Class<?> is inaccessible. For example, the name we have is an alias name of a class, we can't get the correct Class<?> by the given name.- Parameters:
name- name to indicate the class (might be different with the class name) that the logger is instantiated- Returns:
- An SFLogger instance given the name
-
-