All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.spatial.HSMessageLogger Maven / Gradle / Ivy

There is a newer version: 7.0.0.Beta2
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */

package org.hibernate.spatial;

import org.hibernate.internal.log.SubSystemLogging;

import org.jboss.logging.BasicLogger;
import org.jboss.logging.Logger;
import org.jboss.logging.annotations.LogMessage;
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.MessageLogger;
import org.jboss.logging.annotations.ValidIdRange;

import static org.jboss.logging.Logger.Level.INFO;

/**
 * The logger interface for the Hibernate Spatial module.
 *
 * @author Karel Maesen, Geovise BVBA
 */
@MessageLogger(projectCode = "HHH")
@ValidIdRange(min = 80000001, max = 80001000)
@SubSystemLogging(
		name = HSMessageLogger.LOGGER_NAME,
		description = "Base logging for Hibernate Spatial",
		mixed = true
)
public interface HSMessageLogger extends BasicLogger {

	String LOGGER_NAME = "org.hibernate.spatial";

	HSMessageLogger SPATIAL_MSG_LOGGER = Logger.getMessageLogger( HSMessageLogger.class, LOGGER_NAME );

	@LogMessage(level = INFO)
	@Message(value = "hibernate-spatial integration enabled : %s", id = 80000001)
	void spatialEnabled(boolean enabled);

	@LogMessage(level = INFO)
	@Message(value = "hibernate-spatial using Connection Finder for creating Oracle types : %s", id = 80000002)
	void connectionFinder(String className);

	@LogMessage(level = INFO) //maybe should be DEBUG?
	@Message(value = "hibernate-spatial adding type contributions from : %s", id = 80000003)
	void typeContributions(String source);

	@LogMessage(level = INFO) //maybe should be DEBUG?
	@Message(value = "hibernate-spatial adding function contributions from : %s", id = 80000004)
	void functionContributions(String source);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy