本文整理了Java中org.jboss.logging.Logger
类的一些代码示例,展示了Logger
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger
类的具体详情如下:
包路径:org.jboss.logging.Logger
类名称:Logger
[英]An abstracted logging entry point.
[中]抽象日志记录入口点。
代码示例来源:origin: hibernate/hibernate-orm
public void setService(R service) {
if ( this.service != null ) {
if ( log.isDebugEnabled() ) {
log.debug( "Overriding existing service binding [" + serviceRole.getName() + "]" );
}
}
this.service = service;
}
}
代码示例来源:origin: hibernate/hibernate-orm
public CachingRegionFactory(CacheKeysFactory cacheKeysFactory, Properties properties) {
LOG.warn( "org.hibernate.testing.cache.CachingRegionFactory should be only used for testing." );
this.cacheKeysFactory = cacheKeysFactory;
}
代码示例来源:origin: wildfly/wildfly
public void addReceiver(JGroupsReceiver jGroupsReceiver) {
synchronized (receivers) {
if (logger.isTraceEnabled())
logger.trace(this + "::Add Receiver: " + jGroupsReceiver + " on " + channelName);
receivers.add(jGroupsReceiver);
}
}
代码示例来源:origin: hibernate/hibernate-orm
public static void registerCascadeStyle(String name, BaseCascadeStyle cascadeStyle) {
log.tracef( "Registering external cascade style [%s : %s]", name, cascadeStyle );
final CascadeStyle old = STYLES.put( name, cascadeStyle );
if ( old != null ) {
log.debugf(
"External cascade style registration [%s : %s] overrode base registration [%s]",
name,
cascadeStyle,
old
);
}
}
代码示例来源:origin: redisson/redisson
@Override
public NaturalIdRegion buildNaturalIdRegion(String regionName, Properties properties, CacheDataDescription metadata)
throws CacheException {
log.debug("Building naturalId cache region: " + regionName);
RMapCache<Object, Object> mapCache = getCache(regionName, properties, NATURAL_ID_DEF);
return new RedissonNaturalIdRegion(mapCache, this, metadata, settings, properties, NATURAL_ID_DEF);
}
代码示例来源:origin: hibernate/hibernate-orm
@Override
public final Boolean isUnsaved(Object id) {
LOG.trace( "ID unsaved-value strategy ANY" );
return Boolean.TRUE;
}
代码示例来源:origin: wildfly/wildfly
@Override
protected final void doTask(Runnable task) {
try {
task.run();
} catch (ActiveMQInterruptedException e) {
// This could happen during shutdowns. Nothing to be concerned about here
logger.debug("Interrupted Thread", e);
} catch (Throwable t) {
logger.warn(t.getMessage(), t);
}
}
代码示例来源:origin: wildfly/wildfly
@Override
public final void invalidManagedBeanInterface(final String sectionId, final String className) {
super.log.logf(FQCN, WARN, null, invalidManagedBeanInterface$str(), sectionId, className);
}
private static final String invalidManagedBeanInterface = "WFLYEE0010: [Managed Bean spec, section %s] Managed bean implementation class MUST NOT be abstract or final - %s won't be considered as a managed bean, since it doesn't meet that requirement.";
代码示例来源:origin: quartz-scheduler/quartz
@Override
public void destroyService() throws Exception {
log.info("Destroy QuartzService(" + jndiName + ")...");
schedulerFactory = null;
log.info("QuartzService(" + jndiName + ") destroyed.");
}
代码示例来源:origin: hibernate/hibernate-orm
public void sleepASecond() {
try {
log.info( "Byteman rule triggered: sleeping a second" );
Thread.sleep( 1000 );
}
catch ( InterruptedException e ) {
Thread.currentThread().interrupt();
log.error( "unexpected interruption", e );
}
}
代码示例来源:origin: quartz-scheduler/quartz
public void setPropertiesFile(String propertiesFile) {
if (useProperties) {
log
.error("Must specify only one of 'Properties' or 'PropertiesFile'");
error = true;
return;
}
usePropertiesFile = true;
this.propertiesFile = propertiesFile;
}
代码示例来源:origin: wildfly/wildfly
public void channelOpened(Channel channel) {
log.trace("Channel Opened");
try {
writeVersionHeader(channel, false);
channel.receiveMessage(new ClientVersionReceiver(serverMessageInterceptorFactory.create(channel)));
} catch (IOException e) {
log.error("Unable to send header, closing channel", e);
IoUtils.safeClose(channel);
}
}
代码示例来源:origin: hibernate/hibernate-orm
public CollectionLoader(
QueryableCollection collectionPersister,
QueryBuildingParameters buildingParameters) {
super( collectionPersister, buildingParameters );
if ( log.isDebugEnabled() ) {
log.debugf(
"Static select for collection %s: %s",
collectionPersister.getRole(),
getStaticLoadQuery().getSqlStatement()
);
}
}
代码示例来源:origin: hibernate/hibernate-orm
@Override
public boolean generateSchema(String persistenceUnitName, Map map) {
log.tracef( "Starting generateSchema for persistenceUnitName %s", persistenceUnitName );
final EntityManagerFactoryBuilder builder = getEntityManagerFactoryBuilderOrNull( persistenceUnitName, map );
if ( builder == null ) {
log.trace( "Could not obtain matching EntityManagerFactoryBuilder, returning false" );
return false;
}
builder.generateSchema();
return true;
}
代码示例来源:origin: hibernate/hibernate-orm
@Override
public boolean afterUpdate(
SharedSessionContractImplementor session,
Object key,
Object value,
Object currentVersion,
Object previousVersion,
SoftLock lock) {
log.debugf( "Illegal attempt to update item cached as read-only [%s]", key );
throw new UnsupportedOperationException( "Can't write to a readonly object" );
}
}
代码示例来源:origin: looly/hutool
@Override
public boolean isTraceEnabled() {
return logger.isTraceEnabled();
}
代码示例来源:origin: looly/hutool
@Override
public boolean isDebugEnabled() {
return logger.isDebugEnabled();
}
代码示例来源:origin: redisson/redisson
@Override
public EntityRegion buildEntityRegion(String regionName, Properties properties, CacheDataDescription metadata)
throws CacheException {
log.debug("Building entity cache region: " + regionName);
RMapCache<Object, Object> mapCache = getCache(regionName, properties, ENTITY_DEF);
return new RedissonEntityRegion(mapCache, this, metadata, settings, properties, ENTITY_DEF);
}
代码示例来源:origin: hibernate/hibernate-orm
@Override
public final Boolean isUnsaved(Object id) {
LOG.trace( "ID unsaved-value strategy NULL" );
return id == null;
}
代码示例来源:origin: wildfly/wildfly
@Override
public final void failedToClose(final Throwable cause, final Object value) {
super.log.logf(FQCN, WARN, cause, failedToClose$str(), value);
}
private static final String failedToClose = "WFLYCLCOM0002: Failed to close %s";
内容来源于网络,如有侵权,请联系作者删除!