org.apache.log4j.jdbc.JDBCAppender.class Maven / Gradle / Ivy
The newest version!
???? 0
@ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ?
1 ?
1 ?
1 ?
1 ?
1 ?
1 ?
?
?
? ?
? ?
? ?
? ? ? ? ? ? ? ?
? ?
? ? ? ? ?
? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ?
?
? ? ? ? ? ?
? ?
? ? ?
?
?
? ? ?
8 ?
? ?
8 ?
? ? ? ? ? ? ? databaseURL Ljava/lang/String; databaseUser databasePassword
connection Ljava/sql/Connection; sqlStatement
bufferSize I buffer Ljava/util/ArrayList; removes locationInfo Z ()V Code LineNumberTable LocalVariableTable this $Lorg/apache/log4j/jdbc/JDBCAppender; getLocationInfo ()Z setLocationInfo (Z)V flag append &(Lorg/apache/log4j/spi/LoggingEvent;)V event #Lorg/apache/log4j/spi/LoggingEvent; getLogStatement 7(Lorg/apache/log4j/spi/LoggingEvent;)Ljava/lang/String; execute (Ljava/lang/String;)V sql con stmt Ljava/sql/Statement;
Exceptions closeConnection (Ljava/sql/Connection;)V
getConnection ()Ljava/sql/Connection; close e Ljava/sql/SQLException; flushBuffer logEvent i Ljava/util/Iterator; finalize requiresLayout setSql s getSql ()Ljava/lang/String; setUser user setURL url setPassword password
setBufferSize (I)V
newBufferSize getUser getURL getPassword
getBufferSize ()I setDriver Ljava/lang/Exception; driverClass
SourceFile JDBCAppender.java P Q jdbc:odbc:myDB B C me D C
mypassword E C F G H C I J N O java/util/ArrayList P ? K L M L ? y ? y ? Q ? ? ? y ? ? ? ? ? ? p Q ? ? ? ? a k l ? ? ? ? ? ? m Q i j ? ? ? ? ? X sun.jdbc.odbc.JdbcOdbcDriver ? c k ? ? X java/sql/SQLException ? ? Error closing connection ? ? ? ? O ? ? ? ? ? ? X ? ? !org/apache/log4j/spi/LoggingEvent ` a b c Failed to excute sql ? ? ? Q org/apache/log4j/PatternLayout P c c java/lang/Exception Failed to load driver "org/apache/log4j/jdbc/JDBCAppender !org/apache/log4j/AppenderSkeleton org/apache/log4j/Appender getNDC
getThreadName
getMDCCopy getLocationInformation %()Lorg/apache/log4j/spi/LocationInfo; getRenderedMessage getThrowableStrRep ()[Ljava/lang/String; add (Ljava/lang/Object;)Z size getLayout ()Lorg/apache/log4j/Layout; org/apache/log4j/Layout format java/sql/Connection createStatement ()Ljava/sql/Statement; java/sql/Statement
executeUpdate (Ljava/lang/String;)I java/sql/DriverManager
getDrivers ()Ljava/util/Enumeration; java/util/Enumeration hasMoreElements M(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection; isClosed errorHandler #Lorg/apache/log4j/spi/ErrorHandler; !org/apache/log4j/spi/ErrorHandler error +(Ljava/lang/String;Ljava/lang/Exception;I)V closed ensureCapacity iterator ()Ljava/util/Iterator; java/util/Iterator hasNext next ()Ljava/lang/Object; removeAll (Ljava/util/Collection;)Z clear setLayout (Lorg/apache/log4j/Layout;)V setConversionPattern java/lang/Class forName %(Ljava/lang/String;)Ljava/lang/Class; ! ? @ A B C D C E C F G H C I J K L M L N O P Q R ? J*? *? *? *? *? * ?
*? *? *?
Y*? ? ? *?
Y*? ? ? ? S . ? T
Y ^ g r ! x &