gpt4 book ai didi

java - 哪个 Datanucleus 日志记录级别最全面?

转载 作者:行者123 更新时间:2023-12-01 05:42:07 25 4
gpt4 key购买 nike

DataNucleus.JDO - All messages general to JDO
DataNucleus.JPA - All messages general to JPA
DataNucleus.Persistence - All messages relating to the persistence process
DataNucleus.Query - All messages relating to queries
DataNucleus.Lifecycle - All messages relating to object lifecycle changes
DataNucleus.Cache - All messages relating to the DataNucleus Cache
DataNucleus.ClassLoading - All exceptions relating to class loading issues
DataNucleus.MetaData - All messages relating to MetaData
DataNucleus.Management - All messages relating to Management
DataNucleus.General - All general operational messages
DataNucleus.Connection - All messages relating to Connections.
DataNucleus.JCA - All messages relating to Connector JCA.
DataNucleus.Transaction - All messages relating to transactions
DataNucleus.Plugin - All messages relating to DataNucleus plug-ins
DataNucleus.ValueGeneration - All messages relating to value generation
DataNucleus.Datastore - All general datastore messages
DataNucleus.Datastore.Schema - All schema related datastore log messages
DataNucleus.Datastore.Persist - All datastore persistence messages
DataNucleus.Datastore.Retrieve - All datastore retrieval messages
DataNucleus.Datastore.Native - Log of all 'native' statements sent to the datastore
DataNucleus.Enhancer - All messages from the DataNucleus Enhancer.
DataNucleus.SchemaTool - All messages from DataNucleus SchemaTool
DataNucleus.IDE - Messages from the DataNucleus IDE.

我在 Spring 应用程序中使用 java.util.logging

而不是看到这种格式的日志输出:

21:26:09,406 (main) INFO  DataNucleus.Datastore.Schema - Creating table null.DataNucleus_TABLES

我刚刚看到这个:

21:26:09,406 Creating table null.DataNucleus_TABLES

要显示的输出有这么多不同的选项,我将所有这些选项都包括在内,因为我无法分辨我正在查看哪个类别。那么,要启用的最高级别设置是什么,以便我只需为所有 DataNucleus 日志类别设置单一日志级别?

最佳答案

输出的格式取决于您的日志记录配置,DN 文档中引用的格式适用于 Log4J(我们使用的),带有格式化程序。仅当您希望所有类别具有相同的日志记录级别时才设置类别“DataNucleus”,因为它是父类别

关于java - 哪个 Datanucleus 日志记录级别最全面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6876234/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com