关于logback的问题

天地一刀 发布于 2014/11/01 23:06
阅读 1K+
收藏 0

logback的配置:

<configuration>

    <!-- 输出到控制台 -->
    <appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"
            charset="UTF-8">
            <Pattern>%d{HH🇲🇲ss.SSS} [%thread] %-5level %logger{36} - %msg%n
            </Pattern>
        </encoder>
    </appender>

    <!-- 输入到日志文件 -->
    <appender name="rollingfile"
        class="ch.qos.logback.core.rolling.RollingFileAppender">
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>d:/log/%d{yyyy-MM-dd}.log</fileNamePattern>
            <maxHistory>30</maxHistory>
        </rollingPolicy>
        <encoder class="ch.qos.logback.core.rolling.RollingFileAppender"
            charset="UTF-8">
            <Pattern>%d{HH🇲🇲ss.SSS} [%thread] %-5level %logger{36} - %msg%n
            </Pattern>
        </encoder>
    </appender>

    <!-- 配置一些第三方包的日志过滤级别,用于避免刷屏 -->
    <logger name="org.hibernate" level="WARN" />
    <logger name="org.springframework" level="WARN" />
    <logger name="com.opensymphony" level="WARN" />
    <logger name="org.apache" level="WARN" />
    <logger name="com.mchange" level="WARN" />

    <!-- 输出hibernate语句以及参数 -->
    <logger name="org.hibernate.type.descriptor.sql.BasicBinder"
        level="WARN" />
    <logger name="org.hibernate.type.descriptor.sql.BasicExtractor"
        level="WARN" />
    <logger name="org.hibernate.SQL" level="DEBUG" />
    <logger name="org.hibernate.engine.QueryParameters" level="DEBUG" />
    <logger name="org.hibernate.engine.query.HQLQueryPlan" level="DEBUG" />

    <!-- 设置日志级别 -->
    <root>
        <level value="INFO" />
        <appender-ref ref="stdout" />
        <appender-ref ref="rollingfile" />
    </root>
    
</configuration>

为何web应用启动时,apache、hibernate、spring、c3p0的INFO 和 DEBUG级别的信息还是打印出来了?

23:12:09.750 [main] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider
23:12:09.890 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration boolean -> org.hibernate.type.BooleanType@17d90b7
23:12:09.890 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration boolean -> org.hibernate.type.BooleanType@17d90b7
23:12:09.890 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Boolean -> org.hibernate.type.BooleanType@17d90b7
23:12:09.906 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration numeric_boolean -> org.hibernate.type.NumericBooleanType@1598469
23:12:09.906 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration true_false -> org.hibernate.type.TrueFalseType@ef1ce5
23:12:09.906 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration yes_no -> org.hibernate.type.YesNoType@b84cdc
23:12:09.921 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration byte -> org.hibernate.type.ByteType@b7996f
23:12:09.921 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration byte -> org.hibernate.type.ByteType@b7996f
23:12:09.921 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Byte -> org.hibernate.type.ByteType@b7996f
23:12:09.921 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration character -> org.hibernate.type.CharacterType@3aa539
23:12:09.921 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration char -> org.hibernate.type.CharacterType@3aa539
23:12:09.921 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Character -> org.hibernate.type.CharacterType@3aa539
23:12:09.937 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration short -> org.hibernate.type.ShortType@b46689
23:12:09.937 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration short -> org.hibernate.type.ShortType@b46689
23:12:09.937 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Short -> org.hibernate.type.ShortType@b46689
23:12:09.937 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration integer -> org.hibernate.type.IntegerType@177e34
23:12:09.937 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration int -> org.hibernate.type.IntegerType@177e34
23:12:09.937 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Integer -> org.hibernate.type.IntegerType@177e34
23:12:09.953 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration long -> org.hibernate.type.LongType@b10995
23:12:09.953 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration long -> org.hibernate.type.LongType@b10995
23:12:09.953 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Long -> org.hibernate.type.LongType@b10995
23:12:09.968 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration float -> org.hibernate.type.FloatType@c3d0fe
23:12:09.968 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration float -> org.hibernate.type.FloatType@c3d0fe
23:12:09.968 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Float -> org.hibernate.type.FloatType@c3d0fe
23:12:09.968 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration double -> org.hibernate.type.DoubleType@14287b1
23:12:09.968 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration double -> org.hibernate.type.DoubleType@14287b1
23:12:09.968 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Double -> org.hibernate.type.DoubleType@14287b1
23:12:09.984 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration big_decimal -> org.hibernate.type.BigDecimalType@1c7b6d7
23:12:09.984 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.math.BigDecimal -> org.hibernate.type.BigDecimalType@1c7b6d7
23:12:09.984 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration big_integer -> org.hibernate.type.BigIntegerType@3bd856
23:12:09.984 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.math.BigInteger -> org.hibernate.type.BigIntegerType@3bd856
23:12:10.000 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration string -> org.hibernate.type.StringType@1ff6a3f
23:12:10.000 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.String -> org.hibernate.type.StringType@1ff6a3f
23:12:10.000 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration nstring -> org.hibernate.type.StringNVarcharType@1379549
23:12:10.015 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration ncharacter -> org.hibernate.type.CharacterNCharType@13509f6
23:12:10.031 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration url -> org.hibernate.type.UrlType@66cc91
23:12:10.031 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.net.URL -> org.hibernate.type.UrlType@66cc91
23:12:10.046 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration date -> org.hibernate.type.DateType@d597e6
23:12:10.046 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.sql.Date -> org.hibernate.type.DateType@d597e6
23:12:10.062 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration time -> org.hibernate.type.TimeType@b6847f
23:12:10.062 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.sql.Time -> org.hibernate.type.TimeType@b6847f
23:12:10.062 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration timestamp -> org.hibernate.type.TimestampType@109df0b
23:12:10.062 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.sql.Timestamp -> org.hibernate.type.TimestampType@109df0b
23:12:10.062 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.util.Date -> org.hibernate.type.TimestampType@109df0b
23:12:10.078 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration dbtimestamp -> org.hibernate.type.DbTimestampType@19639d
23:12:10.078 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration calendar -> org.hibernate.type.CalendarType@13851b5
23:12:10.078 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.util.Calendar -> org.hibernate.type.CalendarType@13851b5
23:12:10.078 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.util.GregorianCalendar -> org.hibernate.type.CalendarType@13851b5
23:12:10.078 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration calendar_date -> org.hibernate.type.CalendarDateType@645a73
23:12:10.093 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration locale -> org.hibernate.type.LocaleType@cda03b
23:12:10.093 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.util.Locale -> org.hibernate.type.LocaleType@cda03b
23:12:10.093 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration currency -> org.hibernate.type.CurrencyType@1314e55
23:12:10.093 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.util.Currency -> org.hibernate.type.CurrencyType@1314e55
23:12:10.093 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration timezone -> org.hibernate.type.TimeZoneType@1dcb343
23:12:10.109 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.util.TimeZone -> org.hibernate.type.TimeZoneType@1dcb343
23:12:10.109 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration class -> org.hibernate.type.ClassType@c710ba
23:12:10.109 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Class -> org.hibernate.type.ClassType@c710ba
23:12:10.125 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration uuid-binary -> org.hibernate.type.UUIDBinaryType@109da10
23:12:10.125 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.util.UUID -> org.hibernate.type.UUIDBinaryType@109da10
23:12:10.125 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration uuid-char -> org.hibernate.type.UUIDCharType@1b831
23:12:10.125 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration pg-uuid -> org.hibernate.type.PostgresUUIDType@1e4c6fc
23:12:10.140 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration binary -> org.hibernate.type.BinaryType@523b16
23:12:10.140 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration byte[] -> org.hibernate.type.BinaryType@523b16
23:12:10.140 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration [B -> org.hibernate.type.BinaryType@523b16
23:12:10.140 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration wrapper-binary -> org.hibernate.type.WrapperBinaryType@5b4849
23:12:10.140 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration Byte[] -> org.hibernate.type.WrapperBinaryType@5b4849
23:12:10.140 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration [Ljava.lang.Byte; -> org.hibernate.type.WrapperBinaryType@5b4849
23:12:10.140 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration image -> org.hibernate.type.ImageType@12865f1
23:12:10.156 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration characters -> org.hibernate.type.CharArrayType@1c0b72b
23:12:10.156 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration char[] -> org.hibernate.type.CharArrayType@1c0b72b
23:12:10.156 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration [C -> org.hibernate.type.CharArrayType@1c0b72b
23:12:10.156 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration wrapper-characters -> org.hibernate.type.CharacterArrayType@640285
23:12:10.156 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration [Ljava.lang.Character; -> org.hibernate.type.CharacterArrayType@640285
23:12:10.156 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration Character[] -> org.hibernate.type.CharacterArrayType@640285
23:12:10.156 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration text -> org.hibernate.type.TextType@5671b5
23:12:10.171 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration ntext -> org.hibernate.type.NTextType@1bd7498
23:12:10.203 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration blob -> org.hibernate.type.BlobType@196eae9
23:12:10.203 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.sql.Blob -> org.hibernate.type.BlobType@196eae9
23:12:10.218 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration materialized_blob -> org.hibernate.type.MaterializedBlobType@664d5f
23:12:10.250 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration clob -> org.hibernate.type.ClobType@1e2a543
23:12:10.250 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.sql.Clob -> org.hibernate.type.ClobType@1e2a543
23:12:10.265 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration nclob -> org.hibernate.type.NClobType@129e4aa
23:12:10.265 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.sql.NClob -> org.hibernate.type.NClobType@129e4aa
23:12:10.265 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration materialized_clob -> org.hibernate.type.MaterializedClobType@1c22eaf
23:12:10.281 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration materialized_nclob -> org.hibernate.type.MaterializedNClobType@1761366
23:12:10.281 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration serializable -> org.hibernate.type.SerializableType@6caf67
23:12:10.296 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration object -> org.hibernate.type.ObjectType@d0fd23
23:12:10.296 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration java.lang.Object -> org.hibernate.type.ObjectType@d0fd23
23:12:10.312 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration imm_date -> org.hibernate.type.AdaptedImmutableType@60c26b
23:12:10.312 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration imm_time -> org.hibernate.type.AdaptedImmutableType@7c376a
23:12:10.312 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration imm_timestamp -> org.hibernate.type.AdaptedImmutableType@11a19a1
23:12:10.312 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration imm_dbtimestamp -> org.hibernate.type.AdaptedImmutableType@88a5e7
23:12:10.312 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration imm_calendar -> org.hibernate.type.AdaptedImmutableType@143e0f7
23:12:10.312 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration imm_calendar_date -> org.hibernate.type.AdaptedImmutableType@1667de8
23:12:10.312 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration imm_binary -> org.hibernate.type.AdaptedImmutableType@1d41551
23:12:10.312 [main] DEBUG org.hibernate.type.BasicTypeRegistry - Adding type registration imm_serializable -> org.hibernate.type.AdaptedImmutableType@c3b85a
23:12:10.437 [main] INFO  o.h.annotations.common.Version - HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
23:12:10.468 [main] INFO  org.hibernate.Version - HHH000412: Hibernate Core {4.1.10.Final}
23:12:10.468 [main] INFO  org.hibernate.cfg.Environment - HHH000206: hibernate.properties not found
23:12:10.484 [main] INFO  org.hibernate.cfg.Environment - HHH000021: Bytecode provider name : javassist
23:12:10.546 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [uuid2] -> [org.hibernate.id.UUIDGenerator]
23:12:10.546 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [guid] -> [org.hibernate.id.GUIDGenerator]
23:12:10.562 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [uuid] -> [org.hibernate.id.UUIDHexGenerator]
23:12:10.562 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [uuid.hex] -> [org.hibernate.id.UUIDHexGenerator]
23:12:10.562 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [hilo] -> [org.hibernate.id.TableHiLoGenerator]
23:12:10.562 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [assigned] -> [org.hibernate.id.Assigned]
23:12:10.578 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [identity] -> [org.hibernate.id.IdentityGenerator]
23:12:10.578 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [select] -> [org.hibernate.id.SelectGenerator]
23:12:10.578 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [sequence] -> [org.hibernate.id.SequenceGenerator]
23:12:10.578 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [seqhilo] -> [org.hibernate.id.SequenceHiLoGenerator]
23:12:10.578 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [increment] -> [org.hibernate.id.IncrementGenerator]
23:12:10.593 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [foreign] -> [org.hibernate.id.ForeignGenerator]
23:12:10.593 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [sequence-identity] -> [org.hibernate.id.SequenceIdentityGenerator]
23:12:10.593 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [enhanced-sequence] -> [org.hibernate.id.enhanced.SequenceStyleGenerator]
23:12:10.593 [main] DEBUG o.h.i.f.i.DefaultIdentifierGeneratorFactory - Registering IdentifierGenerator strategy [enhanced-table] -> [org.hibernate.id.enhanced.TableGenerator]
23:12:10.656 [main] DEBUG o.h.i.internal.IntegratorServiceImpl - Adding Integrator [org.hibernate.cfg.beanvalidation.BeanValidationIntegrator].
23:12:10.953 [main] DEBUG org.hibernate.cfg.Configuration - Preparing to build session factory with filters : {}
23:12:11.062 [main] DEBUG org.hibernate.cfg.Configuration - Processing hbm.xml files
23:12:11.062 [main] DEBUG org.hibernate.cfg.Configuration - Process annotated classes
23:12:11.078 [main] DEBUG org.hibernate.cfg.Configuration - Processing fk mappings (*ToOne and JoinedSubclass)
23:12:11.078 [main] DEBUG org.hibernate.cfg.Configuration - Processing extends queue
23:12:11.078 [main] DEBUG org.hibernate.cfg.Configuration - Processing extends queue
23:12:11.078 [main] DEBUG org.hibernate.cfg.Configuration - Processing collection mappings
23:12:11.078 [main] DEBUG org.hibernate.cfg.Configuration - Processing native query and ResultSetMapping mappings
23:12:11.078 [main] DEBUG org.hibernate.cfg.Configuration - Processing association property references
23:12:11.078 [main] DEBUG org.hibernate.cfg.Configuration - Creating tables' unique integer identifiers
23:12:11.078 [main] DEBUG org.hibernate.cfg.Configuration - Processing foreign key constraints
23:12:11.390 [main] DEBUG c.m.v.resourcepool.BasicResourcePool - incremented pending_acquires: 1
23:12:11.390 [main] DEBUG c.m.v.resourcepool.BasicResourcePool - incremented pending_acquires: 2
23:12:11.390 [main] DEBUG c.m.v.resourcepool.BasicResourcePool - incremented pending_acquires: 3
23:12:11.390 [main] DEBUG c.m.v.resourcepool.BasicResourcePool - incremented pending_acquires: 4
23:12:11.390 [main] DEBUG c.m.v.resourcepool.BasicResourcePool - incremented pending_acquires: 5
23:12:11.390 [main] DEBUG c.m.v.resourcepool.BasicResourcePool - incremented pending_acquires: 6
23:12:11.390 [main] DEBUG c.m.v.resourcepool.BasicResourcePool - incremented pending_acquires: 7
23:12:11.390 [main] DEBUG c.m.v.resourcepool.BasicResourcePool - incremented pending_acquires: 8
23:12:11.390 [main] DEBUG c.m.v.resourcepool.BasicResourcePool - incremented pending_acquires: 9
23:12:11.390 [main] DEBUG c.m.v.resourcepool.BasicResourcePool - incremented pending_acquires: 10
23:12:11.390 [main] DEBUG c.m.v.resourcepool.BasicResourcePool - com.mchange.v2.resourcepool.BasicResourcePool@9cbba8 config: [start -> 10; min -> 5; max -> 50; inc -> 5; num_acq_attempts -> 0; acq_attempt_delay -> 60000; check_idle_resources_delay -> 0; mox_resource_age -> 0; max_idle_time -> 0; excess_max_idle_time -> 0; destroy_unreturned_resc_time -> 0; expiration_enforcement_delay -> 0; break_on_acquisition_failure -> false; debug_store_checkout_exceptions -> false]
23:12:11.390 [main] INFO  c.m.v.c.i.AbstractPoolBackedDataSource - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 5, acquireRetryAttempts -> 0, acquireRetryDelay -> 60000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hge15z95txx1g71rmload|b58296, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hge15z95txx1g71rmload|b58296, idleConnectionTestPeriod -> 0, initialPoolSize -> 10, jdbcUrl -> jdbc:mysql://localhost:3306/db_test1?useUnicode=true&amp;characterEncoding=UTF-8&amp;relaxAutoCommit=true&amp;zeroDateTimeBehavior=convertToNull, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 50, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 5, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
23:12:11.390 [main] DEBUG c.m.v.resourcepool.BasicResourcePool - acquire test -- pool size: 0; target_pool_size: 10; desired target? 1
23:12:11.390 [main] DEBUG c.m.v.resourcepool.BasicResourcePool - awaitAvailable(): [unknown]
23:12:11.390 [main] DEBUG c.m.v.resourcepool.BasicResourcePool - trace com.mchange.v2.resourcepool.BasicResourcePool@9cbba8 [managed: 0, unused: 0, excluded: 0]
23:12:12.250 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG c.m.v.c.i.C3P0PooledConnectionPool - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@d98dec.acquireResource() returning.
23:12:12.250 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG c.m.v.c.i.C3P0PooledConnectionPool - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@d98dec.acquireResource() returning.
23:12:12.250 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] DEBUG c.m.v.c.i.C3P0PooledConnectionPool - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@d98dec.acquireResource() returning.
23:12:12.281 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG c.m.v.resourcepool.BasicResourcePool - trace com.mchange.v2.resourcepool.BasicResourcePool@9cbba8 [managed: 1, unused: 1, excluded: 0]
23:12:12.281 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG c.m.v.resourcepool.BasicResourcePool - decremented pending_acquires: 9
23:12:12.281 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] DEBUG c.m.v.resourcepool.BasicResourcePool - trace com.mchange.v2.resourcepool.BasicResourcePool@9cbba8 [managed: 2, unused: 1, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@17dd37f)
23:12:12.281 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] DEBUG c.m.v.resourcepool.BasicResourcePool - decremented pending_acquires: 8
23:12:12.281 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG c.m.v.resourcepool.BasicResourcePool - trace com.mchange.v2.resourcepool.BasicResourcePool@9cbba8 [managed: 3, unused: 2, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@17dd37f)
23:12:12.281 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG c.m.v.resourcepool.BasicResourcePool - decremented pending_acquires: 7
23:12:12.281 [main] DEBUG c.m.v.resourcepool.BasicResourcePool - trace com.mchange.v2.resourcepool.BasicResourcePool@9cbba8 [managed: 3, unused: 2, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@17dd37f)
23:12:12.296 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] DEBUG c.m.v.c.i.C3P0PooledConnectionPool - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@d98dec.acquireResource() returning.
23:12:12.296 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] DEBUG c.m.v.resourcepool.BasicResourcePool - trace com.mchange.v2.resourcepool.BasicResourcePool@9cbba8 [managed: 4, unused: 3, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@17dd37f)
23:12:12.312 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG c.m.v.c.i.C3P0PooledConnectionPool - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@d98dec.acquireResource() returning.
23:12:12.296 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG c.m.v.c.i.C3P0PooledConnectionPool - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@d98dec.acquireResource() returning.
23:12:12.328 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] DEBUG c.m.v.resourcepool.BasicResourcePool - decremented pending_acquires: 6
23:12:12.328 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG c.m.v.resourcepool.BasicResourcePool - trace com.mchange.v2.resourcepool.BasicResourcePool@9cbba8 [managed: 5, unused: 4, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@17dd37f)
23:12:12.328 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] DEBUG c.m.v.resourcepool.BasicResourcePool - decremented pending_acquires: 5
23:12:12.328 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG c.m.v.resourcepool.BasicResourcePool - trace com.mchange.v2.resourcepool.BasicResourcePool@9cbba8 [managed: 6, unused: 5, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@17dd37f)
23:12:12.328 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] DEBUG c.m.v.resourcepool.BasicResourcePool - decremented pending_acquires: 4
23:12:12.328 [main] DEBUG o.h.e.jdbc.internal.JdbcServicesImpl - Database ->
       name : MySQL
    version : 5.6.21
      major : 5
      minor : 6
23:12:12.343 [main] DEBUG o.h.e.jdbc.internal.JdbcServicesImpl - Driver ->
       name : MySQL Connector Java
    version : mysql-connector-java-5.1.33 ( Revision: alexander.soklakov@oracle.com-20140908134200-8ukofe1izi0r2b63 )
      major : 5
      minor : 1

加载中
返回顶部
顶部