本文整理了Java中org.xwiki.component.logging.Logger.info()
方法的一些代码示例,展示了Logger.info()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.info()
方法的具体详情如下:
包路径:org.xwiki.component.logging.Logger
类名称:Logger
方法名:info
暂无
代码示例来源:origin: org.xwiki.platform/xwiki-core-extension-api
/**
* {@inheritDoc}
*
* @see org.codehaus.plexus.logging.Logger#info(java.lang.String)
*/
public void info(String message)
{
this.logger.info(message);
}
代码示例来源:origin: org.xwiki.platform/xwiki-core-extension-api
/**
* {@inheritDoc}
*
* @see org.codehaus.plexus.logging.Logger#info(java.lang.String, java.lang.Throwable)
*/
public void info(String message, Throwable throwable)
{
this.logger.info(message, throwable);
}
代码示例来源:origin: org.xwiki.platform/xwiki-core-observation-remote
/**
* {@inheritDoc}
*
* @see org.xwiki.observation.remote.NetworkAdapter#stopAllChannels()
*/
public void stopAllChannels() throws RemoteEventException
{
for (Map.Entry<String, JChannel> channelEntry : this.channels.entrySet()) {
channelEntry.getValue().close();
}
this.channels.clear();
getLogger().info("All channels stoped");
}
}
代码示例来源:origin: org.xwiki.platform/xwiki-core-observation-remote
/**
* {@inheritDoc}
*
* @see org.xwiki.observation.remote.NetworkAdapter#stopChannel(java.lang.String)
*/
public void stopChannel(String channelId) throws RemoteEventException
{
JChannel channel = this.channels.get(channelId);
if (channel == null) {
throw new RemoteEventException(MessageFormat.format("Channel [{0}] is not started", channelId));
}
channel.close();
this.channels.remove(channelId);
getLogger().info(MessageFormat.format("Channel [{0}] stoped", channelId));
}
代码示例来源:origin: org.xwiki.platform/xwiki-core-observation-remote
/**
* {@inheritDoc}
*
* @see org.xwiki.observation.remote.NetworkAdapter#startChannel(java.lang.String)
*/
public void startChannel(String channelId) throws RemoteEventException
{
if (this.channels.containsKey(channelId)) {
throw new RemoteEventException(MessageFormat.format("Channel [{0}] already started", channelId));
}
JChannel channel;
try {
channel = createChannel(channelId);
channel.connect("event");
this.channels.put(channelId, channel);
} catch (Exception e) {
throw new RemoteEventException("Failed to create channel [" + channelId + "]", e);
}
getLogger().info(MessageFormat.format("Channel [{0}] started", channelId));
}
代码示例来源:origin: org.xwiki.platform/xwiki-core-officeimporter
/**
* {@inheritDoc}
*
* @see org.xwiki.officeimporter.openoffice.OpenOfficeManager#stop()
*/
public void stop() throws OpenOfficeManagerException
{
if (checkState(ManagerState.CONNECTED)) {
try {
this.jodOOManager.stop();
setState(ManagerState.NOT_CONNECTED);
getLogger().info("Open Office instance stopped.");
} catch (Exception ex) {
setState(ManagerState.ERROR);
throw new OpenOfficeManagerException("Error while disconnecting / shutting down openoffice.", ex);
}
}
}
代码示例来源:origin: org.xwiki.platform/xwiki-core-officeimporter
/**
* {@inheritDoc}
*
* @see org.xwiki.officeimporter.openoffice.OpenOfficeManager#start()
*/
public void start() throws OpenOfficeManagerException
{
if (!checkState(ManagerState.CONNECTED)) {
initialize();
try {
this.jodOOManager.start();
setState(ManagerState.CONNECTED);
getLogger().info("Open Office instance started.");
} catch (Exception ex) {
setState(ManagerState.ERROR);
throw new OpenOfficeManagerException("Error while connecting / starting openoffice.", ex);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!