0
我在我的一個應用程序中使用Quartz.NET,配置爲使用log4net進行日誌記錄。到目前爲止,一切都如預期般運作。Quartz.NET過濾器信息消息
但是,有一件事讓我煩惱。當我使用INFO作爲日誌級別時,是否有任何方法可以從日誌中過濾出Quartz.NET消息?
典型的日誌文件看起來像這樣:
2016-05-13 16:30:32,608 - Application start
2016-05-13 16:30:32,646 - [Quartz.Impl.StdSchedulerFactory] - INFO - Using default implementation for object serializer
2016-05-13 16:30:32,677 - [Quartz.Impl.StdSchedulerFactory] - INFO - Using default implementation for ThreadExecutor
2016-05-13 16:30:32,677 - [Quartz.Core.SchedulerSignalerImpl] - INFO - Initialized Scheduler Signaller of type: Quartz.Core.SchedulerSignalerImpl
2016-05-13 16:30:32,677 - [Quartz.Core.QuartzScheduler] - INFO - Quartz Scheduler v.2.3.3.0 created.
2016-05-13 16:30:32,677 - [Quartz.Plugin.Xml.XMLSchedulingDataProcessorPlugin] - INFO - Registering Quartz Job Initialization Plug-in.
2016-05-13 16:30:32,677 - [Quartz.Simpl.RAMJobStore] - INFO - RAMJobStore initialized.
2016-05-13 16:30:32,692 - [Quartz.Core.QuartzScheduler] - INFO - Scheduler meta-data: Quartz Scheduler (v2.3.3.0) 'ArchiveAppScheduler' with instanceId 'ArchiveApp'
Scheduler class: 'Quartz.Core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'Quartz.Simpl.SimpleThreadPool' - with 10 threads.
Using job-store 'Quartz.Simpl.RAMJobStore' - which does not support persistence. and is not clustered.
2016-05-13 16:30:32,692 - [Quartz.Impl.StdSchedulerFactory] - INFO - Quartz scheduler 'ArchiveAppScheduler' initialized
2016-05-13 16:30:32,692 - [Quartz.Impl.StdSchedulerFactory] - INFO - Quartz scheduler version: 2.3.3.0
2016-05-13 16:30:32,692 - [Quartz.Xml.XMLSchedulingDataProcessor] - INFO - Parsing XML file: quartz_jobs.xml with systemId: quartz_jobs.xml
2016-05-13 16:30:32,846 - [Quartz.Xml.XMLSchedulingDataProcessor] - INFO - Adding 1 jobs, 1 triggers.
2016-05-13 16:30:32,846 - [Quartz.Xml.XMLSchedulingDataProcessor] - INFO - Adding job: MainJob.ArchiveDB
2016-05-13 16:30:32,862 - [Quartz.Core.QuartzScheduler] - INFO - Scheduler ArchiveAppScheduler_$_ArchiveApp started.
2016-05-13 16:30:32,878 - [ArchiveApp.ArchiveDB] - INFO - Archiving process started
2016-05-13 16:30:32,878 - [ArchiveApp.Helpers] - INFO - Reading SyncRepositoryServerName setting
有沒有什麼辦法可以過濾掉所有[石英#######]消息?
https://logging.apache.org/log4net/release/manual/configuration.html - 「假如我們不再希望看到屬於任何的COM組件的輸出.Foo包...「 – Caramiriel
非常感謝您的幫助。 –