
001/*- 002 * #%L 003 * HAPI FHIR - Core Library 004 * %% 005 * Copyright (C) 2014 - 2025 Smile CDR, Inc. 006 * %% 007 * Licensed under the Apache License, Version 2.0 (the "License"); 008 * you may not use this file except in compliance with the License. 009 * You may obtain a copy of the License at 010 * 011 * http://www.apache.org/licenses/LICENSE-2.0 012 * 013 * Unless required by applicable law or agreed to in writing, software 014 * distributed under the License is distributed on an "AS IS" BASIS, 015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 016 * See the License for the specific language governing permissions and 017 * limitations under the License. 018 * #L% 019 */ 020package ca.uhn.fhir.util; 021 022import org.slf4j.Logger; 023import org.slf4j.LoggerFactory; 024 025public class Logs { 026 public static Logger getBatchTroubleshootingLog() { 027 return ourBatchTroubleshootingLog; 028 } 029 030 public static Logger getNarrativeGenerationTroubleshootingLog() { 031 return ourNarrativeGenerationTroubleshootingLog; 032 } 033 034 public static Logger getPartitionTroubleshootingLog() { 035 return ourPartitionTroubleshootingLog; 036 } 037 038 public static Logger getRepositoryTroubleshootingLog() { 039 return ourRespositoryTroubleshootingLog; 040 } 041 042 public static Logger getSubscriptionTroubleshootingLog() { 043 return ourSubscriptionTroubleshootingLog; 044 } 045 046 public static Logger getSubscriptionTopicLog() { 047 return ourSubscriptionTopicLog; 048 } 049 050 public static Logger getTerminologyTroubleshootingLog() { 051 return ourTerminologyTroubleshootingLog; 052 } 053 054 public static final String CA_UHN_FHIR_LOG_BATCH_TROUBLESHOOTING = "ca.uhn.fhir.log.batch_troubleshooting"; 055 public static final String CA_UHN_FHIR_LOG_NARRATIVE_GENERATION_TROUBLESHOOTING = 056 "ca.uhn.fhir.log.narrative_generation_troubleshooting"; 057 public static final String CA_UHN_FHIR_LOG_PARTITION_TROUBLESHOOTING = "ca.uhn.fhir.log.partition_troubleshooting"; 058 public static final String CA_CDR_LOG_REPOSITORY_TROUBLESHOOTING = "ca.cdr.log.repository_troubleshooting"; 059 public static final String CA_CDR_LOG_SUBSCRIPTION_TROUBLESHOOTING = "ca.cdr.log.subscription_troubleshooting"; 060 public static final String CA_UHN_FHIR_LOG_SUBSCRIPTION_TOPIC_TROUBLESHOOTING = 061 "ca.uhn.fhir.log.subscription_topic_troubleshooting"; 062 public static final String CA_UHN_FHIR_LOG_TERMINOLOGY_TROUBLESHOOTING = 063 "ca.uhn.fhir.log.terminology_troubleshooting"; 064 065 private static final Logger ourBatchTroubleshootingLog = 066 LoggerFactory.getLogger(CA_UHN_FHIR_LOG_BATCH_TROUBLESHOOTING); 067 068 private static final Logger ourNarrativeGenerationTroubleshootingLog = 069 LoggerFactory.getLogger(CA_UHN_FHIR_LOG_NARRATIVE_GENERATION_TROUBLESHOOTING); 070 071 private static final Logger ourPartitionTroubleshootingLog = 072 LoggerFactory.getLogger(CA_UHN_FHIR_LOG_PARTITION_TROUBLESHOOTING); 073 074 private static final Logger ourSubscriptionTroubleshootingLog = 075 LoggerFactory.getLogger(CA_CDR_LOG_SUBSCRIPTION_TROUBLESHOOTING); 076 077 private static final Logger ourRespositoryTroubleshootingLog = 078 LoggerFactory.getLogger(CA_CDR_LOG_REPOSITORY_TROUBLESHOOTING); 079 080 private static final Logger ourSubscriptionTopicLog = 081 LoggerFactory.getLogger(CA_UHN_FHIR_LOG_SUBSCRIPTION_TOPIC_TROUBLESHOOTING); 082 083 private static final Logger ourTerminologyTroubleshootingLog = 084 LoggerFactory.getLogger(CA_UHN_FHIR_LOG_TERMINOLOGY_TROUBLESHOOTING); 085}