本文整理了Java中com.jcabi.log.Logger.info()
方法的一些代码示例,展示了Logger.info()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.info()
方法的具体详情如下:
包路径:com.jcabi.log.Logger
类名称:Logger
方法名:info
[英]Protocol one message, with INFO priority level.
[中]协议一消息,具有信息优先级。
代码示例来源:origin: com.jcabi/jcabi-log
/**
* Protocol one message, with {@code INFO} priority level.
* @param source The source of the logging operation
* @param msg The text message to be logged
* @since 0.7.11
*/
public static void info(final Object source, final String msg) {
Logger.info(source, msg, Logger.EMPTY);
}
代码示例来源:origin: jcabi/jcabi-log
/**
* Protocol one message, with {@code INFO} priority level.
* @param source The source of the logging operation
* @param msg The text message to be logged
* @since 0.7.11
*/
public static void info(final Object source, final String msg) {
Logger.info(source, msg, Logger.EMPTY);
}
代码示例来源:origin: com.rexsl/rexsl
@Override
public void log(final String str) {
Logger.info(this, str);
}
代码示例来源:origin: aintshy/hub
@Override
public void put(final String code) {
Logger.info(this, "code is '%s'", code);
}
};
代码示例来源:origin: com.rexsl/rexsl
@Override
public void log(final String str, final Throwable throwable) {
Logger.info(this, "%s %[exception]s", str, throwable);
}
代码示例来源:origin: teamed/qulice
@Override
public void doExecute() throws MojoFailureException {
try {
this.run();
} catch (final ValidationException ex) {
Logger.info(
this,
"Read our quality policy: http://www.qulice.com/quality.html"
);
throw new MojoFailureException("Failure", ex);
}
}
代码示例来源:origin: jcabi/jcabi-http
@Override
public void stop() {
if (this.gws != null) {
this.gws.stop();
}
Logger.info(this, "stopped on port #%s", this.port);
this.port = 0;
}
代码示例来源:origin: com.cognifide.aet/client-core
@Override
public void process() throws AETException {
Logger.info(this, "[%s]: %s", DATE_FORMATTER.get().format(new Date()),
suiteStatusResult.getMessage());
}
}
代码示例来源:origin: Cognifide/aet
@Override
public void process() throws AETException {
Logger.info(this, "[%s]: %s", DATE_FORMATTER.get().format(new Date()),
suiteStatusResult.getMessage());
}
}
代码示例来源:origin: aintshy/hub
@Override
public void deliver(final Email email) {
Logger.info(this, "email to %s", email.getToAddresses());
}
};
代码示例来源:origin: jcabi/jcabi-dynamodb-maven-plugin
@Override
public void run(final Instances instances) throws MojoFailureException {
Logger.info(
this, "DynamoDB Local is listening on port %d... (Ctrl-C to stop)",
this.tcpPort()
);
try {
TimeUnit.SECONDS.sleep(Long.MAX_VALUE);
} catch (final InterruptedException ex) {
Thread.currentThread().interrupt();
throw new IllegalStateException(ex);
}
}
代码示例来源:origin: Cognifide/aet
@Override
public void process() throws AETException {
Logger.info(this, "Report is available at " + reportUrl);
redirectWriter.write(reportUrl);
runnerTerminator.finish();
}
}
代码示例来源:origin: com.cognifide.aet/client-core
@Override
public void process() throws AETException {
Logger.info(this, "Report is available at " + reportUrl);
redirectWriter.write(reportUrl);
runnerTerminator.finish();
}
}
代码示例来源:origin: com.jcabi/jcabi-dynamo
/**
* Drop table.
* @throws InterruptedException If something fails
*/
public void drop() throws InterruptedException {
final AmazonDynamoDB aws = this.region.aws();
final String name = this.request.getTableName();
aws.deleteTable(new DeleteTableRequest().withTableName(name));
Logger.info(this, "DynamoDB table '%s' deletion requested", name);
while (this.exists()) {
Logger.info(this, "DynamoDB table '%s' still exists", name);
TimeUnit.SECONDS.sleep((long) Tv.TEN);
}
Logger.info(this, "DynamoDB table '%s' deleted", name);
}
代码示例来源:origin: teamed/qulice
@Override
public void validate(final Environment env) throws ValidationException {
if (env.outdir().exists()) {
if (!env.exclude("findbugs", "")) {
this.check(this.findbugs(env));
}
} else {
Logger.info(
this,
"No classes at %s, no FindBugs validation",
env.outdir()
);
}
}
代码示例来源:origin: com.qulice/qulice-findbugs
@Override
public void validate(final Environment env) throws ValidationException {
if (env.outdir().exists()) {
if (!env.exclude("findbugs", "")) {
this.check(this.findbugs(env));
}
} else {
Logger.info(
this,
"No classes at %s, no FindBugs validation",
env.outdir()
);
}
}
代码示例来源:origin: co.stateful/java-sdk
@Override
public void set(final long value) throws IOException {
final long start = System.currentTimeMillis();
this.front("set").method(Request.PUT)
.uri().queryParam("value", value).back()
.fetch()
.as(RestResponse.class)
.assertStatus(HttpURLConnection.HTTP_OK);
Logger.info(
this, "counter \"%s\" set to %d in %[ms]s",
this.label, value,
System.currentTimeMillis() - start
);
}
代码示例来源:origin: jcabi/jcabi-dynamodb-maven-plugin
@Override
public void execute() throws MojoFailureException {
StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
if (this.skip) {
Logger.info(this, "execution skipped because of 'skip' option");
return;
}
this.environment();
this.run(AbstractDynamoMojo.INSTANCES);
}
代码示例来源:origin: yegor256/netbout
@Override
public void subscribe(final boolean subs) throws IOException {
this.request.fetch()
.as(RestResponse.class)
.assertStatus(HttpURLConnection.HTTP_OK)
.as(XmlResponse.class)
.rel("/page/links/link[@rel='subscribe']/@href")
.method(Request.GET)
.fetch()
.as(RestResponse.class)
.assertStatus(HttpURLConnection.HTTP_SEE_OTHER);
Logger.info(this, "bout #%d subscription changed", this.num);
}
代码示例来源:origin: yegor256/netbout
@Override
public void post(final String text) throws IOException {
this.request.fetch()
.as(RestResponse.class)
.assertStatus(HttpURLConnection.HTTP_OK)
.as(XmlResponse.class)
.rel("/page/links/link[@rel='post']/@href")
.method(Request.POST)
.body().formParam("text", text).back()
.fetch();
Logger.info(this, "message posted");
}
内容来源于网络,如有侵权,请联系作者删除!