本文整理汇总了Java中play.Logger.ALogger类的典型用法代码示例。如果您正苦于以下问题:Java ALogger类的具体用法?Java ALogger怎么用?Java ALogger使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ALogger类属于play.Logger包,在下文中一共展示了ALogger类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: patch
import play.Logger.ALogger; //导入依赖的package包/类
@Override
public void patch(ALogger log) {
log.info("START PATCHER " + this.getRelease());
log.info("START ADD PLUGIN DEFINITION");
PluginDefinition pluginDefinition = PluginDefinition.getPluginDefinitionFromIdentifier("widgetkit1");
if (pluginDefinition == null) {
log.info("The plugin definition widgetkit1 is not existing: add it.");
pluginDefinition = new PluginDefinition();
pluginDefinition.identifier = "widgetkit1";
pluginDefinition.clazz = "services.plugins.system.widgetkit1.StandardWidgetKitPlugin";
pluginDefinition.isAvailable = true;
pluginDefinition.save();
} else {
log.info("The plugin definition widgetkit1 is already existing: do nothing.");
}
log.info("END ADD PLUGIN DEFINITION");
log.info("END PATCHER " + this.getRelease());
}