本文整理了Java中org.modeshape.common.logging.Logger.isDebugEnabled()
方法的一些代码示例,展示了Logger.isDebugEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.isDebugEnabled()
方法的具体详情如下:
包路径:org.modeshape.common.logging.Logger
类名称:Logger
方法名:isDebugEnabled
[英]Return whether messages at the DEBUG level are being logged.
[中]返回是否正在记录调试级别的消息。
代码示例来源:origin: ModeShape/modeshape
@Override
public boolean isDebugEnabled() {
return logger.isDebugEnabled();
}
代码示例来源:origin: ModeShape/modeshape
@Override
public boolean isDebugEnabled() {
return logger.isDebugEnabled();
}
代码示例来源:origin: org.fcrepo/modeshape-jcr
@Override
public boolean isDebugEnabled() {
return logger.isDebugEnabled();
}
代码示例来源:origin: ModeShape/modeshape
private void logDebug(String message, Object...args) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug(message, args);
}
}
代码示例来源:origin: ModeShape/modeshape
@Override
public boolean exists( Connection connection, String id ) throws SQLException {
if (logger.isDebugEnabled()) {
logger.debug("Checking if the content with ID {0} exists in {1}", id, tableName());
}
try (PreparedStatement ps = connection.prepareStatement(statements.get(CONTENT_EXISTS))) {
ps.setString(1, id);
ResultSet rs = ps.executeQuery();
return rs.next();
}
}
代码示例来源:origin: org.fcrepo/modeshape-jcr
@Override
public void restore( String absPath,
Version version,
boolean removeExisting )
throws PathNotFoundException, ItemExistsException, VersionException, ConstraintViolationException,
UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException {
if (LOGGER.isDebugEnabled()) LOGGER.debug("VersionManager.restore('{0}',{1},{2})", absPath, version, removeExisting);
restoreAtAbsPath(absPath, version, removeExisting, true);
}
代码示例来源:origin: ModeShape/modeshape
protected void logTableInfo( String message ) {
if (logger.isDebugEnabled()) {
logger.debug(message, tableName());
}
}
代码示例来源:origin: ModeShape/modeshape
@Override
public void restore( String absPath,
Version version,
boolean removeExisting )
throws PathNotFoundException, ItemExistsException, VersionException, ConstraintViolationException,
UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException {
if (LOGGER.isDebugEnabled()) LOGGER.debug("VersionManager.restore('{0}',{1},{2})", absPath, version, removeExisting);
restoreAtAbsPath(absPath, version, removeExisting, true);
}
代码示例来源:origin: org.fcrepo/modeshape-jcr
@Override
public Version checkin( String absPath )
throws VersionException, UnsupportedRepositoryOperationException, InvalidItemStateException, LockException,
RepositoryException {
if (LOGGER.isDebugEnabled()) LOGGER.debug("VersionManager.checkin('{0}')", absPath);
return checkin(session.getNode(absPath));
}
代码示例来源:origin: org.fcrepo/modeshape-jcr
@Override
public void checkout( String absPath ) throws LockException, RepositoryException {
if (LOGGER.isDebugEnabled()) LOGGER.debug("VersionManager.checkout('{0}')", absPath);
checkout(session.getNode(absPath));
}
代码示例来源:origin: ModeShape/modeshape
@Override
public Version checkin( String absPath )
throws VersionException, UnsupportedRepositoryOperationException, InvalidItemStateException, LockException,
RepositoryException {
if (LOGGER.isDebugEnabled()) LOGGER.debug("VersionManager.checkin('{0}')", absPath);
return checkin(session.getNode(absPath));
}
代码示例来源:origin: ModeShape/modeshape
@Override
public void checkout( String absPath ) throws LockException, RepositoryException {
if (LOGGER.isDebugEnabled()) LOGGER.debug("VersionManager.checkout('{0}')", absPath);
checkout(session.getNode(absPath));
}
代码示例来源:origin: ModeShape/modeshape
private DataSource createManagedDS(RelationalDbConfig config) {
HikariConfig hikariCfg = new HikariConfig(config.datasourceConfig());
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Attempting to connect to '{0}' with '{1}' for username '{2}' and password '{3}'",
hikariCfg.getJdbcUrl(),
hikariCfg.getDriverClassName(), hikariCfg.getUsername(), "*****");
}
return new HikariDataSource(hikariCfg);
}
代码示例来源:origin: ModeShape/modeshape
protected void loadFromDocumentStore(Set<String> keys) {
this.documentStore.load(keys).forEach(entry -> {
String key = entry.id();
Document document = entry.content();
NodeKey nodeKey = new NodeKey(key);
// in some cases (user transactions) we may be replacing a node, but it's important to do so
this.nodesByKey.put(nodeKey, new LazyCachedNode(nodeKey, document));
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Read a fresh copy from the document store for '{0}' and stored it in the tx ws cache as '{1}'",
key, document);
}
});
}
代码示例来源:origin: org.fcrepo/modeshape-jcr
@Override
public void doneMerge( String absPath,
Version version )
throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException {
if (LOGGER.isDebugEnabled()) LOGGER.debug("VersionManager.doneMerge('{0}',{1})", absPath, version);
// Create a new session in which we'll finish the merge, so this session remains thread-safe ...
JcrSession mergeSession = session.spawnSession(false);
doneMerge(mergeSession.getNode(absPath), version);
}
代码示例来源:origin: ModeShape/modeshape
@Override
public void doneMerge( String absPath,
Version version )
throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException {
if (LOGGER.isDebugEnabled()) LOGGER.debug("VersionManager.doneMerge('{0}',{1})", absPath, version);
// Create a new session in which we'll finish the merge, so this session remains thread-safe ...
JcrSession mergeSession = session.spawnSession(false);
doneMerge(mergeSession.getNode(absPath), version);
}
代码示例来源:origin: org.fcrepo/modeshape-jcr
@Override
public void remove( String absPath )
throws UnsupportedOperationException, PathNotFoundException, VersionException, RepositoryException {
if (LOGGER.isDebugEnabled()) LOGGER.debug("VersionManager.remove('{0}')", absPath);
JcrSession removeSession = session.spawnSession(false);
AbstractJcrNode node = removeSession.getNode(absPath);
checkVersionable(node);
SessionCache systemCache = session.createSystemCache(false);
removeHistories(node, systemCache);
node.remove();
removeSession.cache().save(systemCache, null);
}
代码示例来源:origin: ModeShape/modeshape
@Override
public void remove( String absPath )
throws UnsupportedOperationException, PathNotFoundException, VersionException, RepositoryException {
if (LOGGER.isDebugEnabled()) LOGGER.debug("VersionManager.remove('{0}')", absPath);
JcrSession removeSession = session.spawnSession(false);
AbstractJcrNode node = removeSession.getNode(absPath);
checkVersionable(node);
SessionCache systemCache = session.createSystemCache(false);
removeHistories(node, systemCache);
node.remove();
removeSession.cache().save(systemCache, null);
}
代码示例来源:origin: ModeShape/modeshape
@Override
public void put( String key, SchematicEntry entry ) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("putting at {0} document {1}", key, entry.source());
}
TransactionStore.TransactionMap<String, Document> txContent = transactionalContent(true);
Document source = entry.source();
Document content = entry.content();
if (content instanceof EditableDocument) {
source = SchematicEntry.create(entry.id(), ((EditableDocument) content).unwrap()).source();
}
txContent.put(key, source);
}
代码示例来源:origin: ModeShape/modeshape
@Test
public void shouldSupportAskingWhetherLoggingLevelsAreEnabled() {
logger.isErrorEnabled();
logger.isWarnEnabled();
logger.isInfoEnabled();
logger.isDebugEnabled();
logger.isTraceEnabled();
}
内容来源于网络,如有侵权,请联系作者删除!