
org.hawkular.bus.broker.extension.log.MsgLogger Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2015 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.hawkular.bus.broker.extension.log;
import org.jboss.logging.Logger;
import org.jboss.logging.Logger.Level;
import org.jboss.logging.annotations.Cause;
import org.jboss.logging.annotations.LogMessage;
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.MessageLogger;
import org.jboss.logging.annotations.ValidIdRange;
/**
* @author John Mazzitelli
*/
@MessageLogger(projectCode = "HAWKBUS")
@ValidIdRange(min = 110000, max = 119999)
public interface MsgLogger {
MsgLogger LOGGER = Logger.getMessageLogger(MsgLogger.class, MsgLogger.class.getPackage().getName());
@LogMessage(level = Level.WARN)
@Message(id = 110000, value = "Cannot determine absolute path of config file [%s]. Does it exist? - %s")
void warnCannotDetermineConfigFilePath(String configFile, String causeString);
@LogMessage(level = Level.INFO)
@Message(id = 110001, value = "Broker Service Starting")
void infoBrokerServiceStarting();
@LogMessage(level = Level.INFO)
@Message(id = 110002, value = "Broker Service Started")
void infoBrokerServiceStarted();
@LogMessage(level = Level.INFO)
@Message(id = 110003, value = "Broker Service Stopping")
void infoBrokerServiceStopping();
@LogMessage(level = Level.INFO)
@Message(id = 110004, value = "Broker Service Stopped")
void infoBrokerServiceStopped();
@LogMessage(level = Level.INFO)
@Message(id = 110005, value = "Broker is already started")
void infoBrokerAlreadyStarted();
@LogMessage(level = Level.INFO)
@Message(id = 110006, value = "Starting the broker now")
void infoStartingBrokerNow();
@LogMessage(level = Level.INFO)
@Message(id = 110007, value = "Broker told to bind socket to [%s:%s]")
void infoBrokerBindingToSocket(String connectorAddress, String connectorPort);
@LogMessage(level = Level.INFO)
@Message(id = 110008, value = "Broker told to discover other brokers via [%s:%s]")
void infoBrokerDiscoveryEndpoint(String discoveryAddress, String discoveryPort);
@LogMessage(level = Level.INFO)
@Message(id = 110009, value = "Broker told to use configuration file [%s]")
void infoBrokerConfigurationFile(String configFile);
@LogMessage(level = Level.ERROR)
@Message(id = 110010, value = "Broker aborted with exception.")
void errorBrokerAborted(@Cause Throwable t);
@LogMessage(level = Level.INFO)
@Message(id = 110011, value = "Broker is already stopped.")
void infoBrokerAlreadyStopped();
@LogMessage(level = Level.INFO)
@Message(id = 110012, value = "Stopping the broker now")
void infoStoppingBrokerNow();
@LogMessage(level = Level.ERROR)
@Message(id = 110013, value = "Failed to shutdown broker")
void errorFailedToShutdownBroker(@Cause Throwable t);
@LogMessage(level = Level.INFO)
@Message(id = 110015, value = "Broker is not enabled and will not be deployed")
void infoBrokerNotEnabled();
@LogMessage(level = Level.INFO)
@Message(id = 110016, value = "Broker is enabled and will be deployed using config file [%s]")
void infoBrokerEnabledWithConfigFile(String configFile);
@LogMessage(level = Level.INFO)
@Message(id = 110017, value = "Initializing broker subsystem")
void infoInitializingBrokerSubsystem();
@LogMessage(level = Level.INFO)
@Message(id = 110018, value = "Asked to restart the broker. Will stop it, then restart it now.")
void infoAskedToRestartBroker();
@LogMessage(level = Level.INFO)
@Message(id = 110019, value = "Asked to stop the broker.")
void infoAskedToStopBroker();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy