com.jcabi.log.Logger.info()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(264)

本文整理了Java中com.jcabi.log.Logger.info()方法的一些代码示例,展示了Logger.info()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.info()方法的具体详情如下:
包路径:com.jcabi.log.Logger
类名称:Logger
方法名:info

Logger.info介绍

[英]Protocol one message, with INFO priority level.
[中]协议一消息,具有信息优先级。

代码示例

代码示例来源:origin: com.jcabi/jcabi-log

  1. /**
  2. * Protocol one message, with {@code INFO} priority level.
  3. * @param source The source of the logging operation
  4. * @param msg The text message to be logged
  5. * @since 0.7.11
  6. */
  7. public static void info(final Object source, final String msg) {
  8. Logger.info(source, msg, Logger.EMPTY);
  9. }

代码示例来源:origin: jcabi/jcabi-log

  1. /**
  2. * Protocol one message, with {@code INFO} priority level.
  3. * @param source The source of the logging operation
  4. * @param msg The text message to be logged
  5. * @since 0.7.11
  6. */
  7. public static void info(final Object source, final String msg) {
  8. Logger.info(source, msg, Logger.EMPTY);
  9. }

代码示例来源:origin: com.rexsl/rexsl

  1. @Override
  2. public void log(final String str) {
  3. Logger.info(this, str);
  4. }

代码示例来源:origin: aintshy/hub

  1. @Override
  2. public void put(final String code) {
  3. Logger.info(this, "code is '%s'", code);
  4. }
  5. };

代码示例来源:origin: com.rexsl/rexsl

  1. @Override
  2. public void log(final String str, final Throwable throwable) {
  3. Logger.info(this, "%s %[exception]s", str, throwable);
  4. }

代码示例来源:origin: teamed/qulice

  1. @Override
  2. public void doExecute() throws MojoFailureException {
  3. try {
  4. this.run();
  5. } catch (final ValidationException ex) {
  6. Logger.info(
  7. this,
  8. "Read our quality policy: http://www.qulice.com/quality.html"
  9. );
  10. throw new MojoFailureException("Failure", ex);
  11. }
  12. }

代码示例来源:origin: jcabi/jcabi-http

  1. @Override
  2. public void stop() {
  3. if (this.gws != null) {
  4. this.gws.stop();
  5. }
  6. Logger.info(this, "stopped on port #%s", this.port);
  7. this.port = 0;
  8. }

代码示例来源:origin: com.cognifide.aet/client-core

  1. @Override
  2. public void process() throws AETException {
  3. Logger.info(this, "[%s]: %s", DATE_FORMATTER.get().format(new Date()),
  4. suiteStatusResult.getMessage());
  5. }
  6. }

代码示例来源:origin: Cognifide/aet

  1. @Override
  2. public void process() throws AETException {
  3. Logger.info(this, "[%s]: %s", DATE_FORMATTER.get().format(new Date()),
  4. suiteStatusResult.getMessage());
  5. }
  6. }

代码示例来源:origin: aintshy/hub

  1. @Override
  2. public void deliver(final Email email) {
  3. Logger.info(this, "email to %s", email.getToAddresses());
  4. }
  5. };

代码示例来源:origin: jcabi/jcabi-dynamodb-maven-plugin

  1. @Override
  2. public void run(final Instances instances) throws MojoFailureException {
  3. Logger.info(
  4. this, "DynamoDB Local is listening on port %d... (Ctrl-C to stop)",
  5. this.tcpPort()
  6. );
  7. try {
  8. TimeUnit.SECONDS.sleep(Long.MAX_VALUE);
  9. } catch (final InterruptedException ex) {
  10. Thread.currentThread().interrupt();
  11. throw new IllegalStateException(ex);
  12. }
  13. }

代码示例来源:origin: Cognifide/aet

  1. @Override
  2. public void process() throws AETException {
  3. Logger.info(this, "Report is available at " + reportUrl);
  4. redirectWriter.write(reportUrl);
  5. runnerTerminator.finish();
  6. }
  7. }

代码示例来源:origin: com.cognifide.aet/client-core

  1. @Override
  2. public void process() throws AETException {
  3. Logger.info(this, "Report is available at " + reportUrl);
  4. redirectWriter.write(reportUrl);
  5. runnerTerminator.finish();
  6. }
  7. }

代码示例来源:origin: com.jcabi/jcabi-dynamo

  1. /**
  2. * Drop table.
  3. * @throws InterruptedException If something fails
  4. */
  5. public void drop() throws InterruptedException {
  6. final AmazonDynamoDB aws = this.region.aws();
  7. final String name = this.request.getTableName();
  8. aws.deleteTable(new DeleteTableRequest().withTableName(name));
  9. Logger.info(this, "DynamoDB table '%s' deletion requested", name);
  10. while (this.exists()) {
  11. Logger.info(this, "DynamoDB table '%s' still exists", name);
  12. TimeUnit.SECONDS.sleep((long) Tv.TEN);
  13. }
  14. Logger.info(this, "DynamoDB table '%s' deleted", name);
  15. }

代码示例来源:origin: teamed/qulice

  1. @Override
  2. public void validate(final Environment env) throws ValidationException {
  3. if (env.outdir().exists()) {
  4. if (!env.exclude("findbugs", "")) {
  5. this.check(this.findbugs(env));
  6. }
  7. } else {
  8. Logger.info(
  9. this,
  10. "No classes at %s, no FindBugs validation",
  11. env.outdir()
  12. );
  13. }
  14. }

代码示例来源:origin: com.qulice/qulice-findbugs

  1. @Override
  2. public void validate(final Environment env) throws ValidationException {
  3. if (env.outdir().exists()) {
  4. if (!env.exclude("findbugs", "")) {
  5. this.check(this.findbugs(env));
  6. }
  7. } else {
  8. Logger.info(
  9. this,
  10. "No classes at %s, no FindBugs validation",
  11. env.outdir()
  12. );
  13. }
  14. }

代码示例来源:origin: co.stateful/java-sdk

  1. @Override
  2. public void set(final long value) throws IOException {
  3. final long start = System.currentTimeMillis();
  4. this.front("set").method(Request.PUT)
  5. .uri().queryParam("value", value).back()
  6. .fetch()
  7. .as(RestResponse.class)
  8. .assertStatus(HttpURLConnection.HTTP_OK);
  9. Logger.info(
  10. this, "counter \"%s\" set to %d in %[ms]s",
  11. this.label, value,
  12. System.currentTimeMillis() - start
  13. );
  14. }

代码示例来源:origin: jcabi/jcabi-dynamodb-maven-plugin

  1. @Override
  2. public void execute() throws MojoFailureException {
  3. StaticLoggerBinder.getSingleton().setMavenLog(this.getLog());
  4. if (this.skip) {
  5. Logger.info(this, "execution skipped because of 'skip' option");
  6. return;
  7. }
  8. this.environment();
  9. this.run(AbstractDynamoMojo.INSTANCES);
  10. }

代码示例来源:origin: yegor256/netbout

  1. @Override
  2. public void subscribe(final boolean subs) throws IOException {
  3. this.request.fetch()
  4. .as(RestResponse.class)
  5. .assertStatus(HttpURLConnection.HTTP_OK)
  6. .as(XmlResponse.class)
  7. .rel("/page/links/link[@rel='subscribe']/@href")
  8. .method(Request.GET)
  9. .fetch()
  10. .as(RestResponse.class)
  11. .assertStatus(HttpURLConnection.HTTP_SEE_OTHER);
  12. Logger.info(this, "bout #%d subscription changed", this.num);
  13. }

代码示例来源:origin: yegor256/netbout

  1. @Override
  2. public void post(final String text) throws IOException {
  3. this.request.fetch()
  4. .as(RestResponse.class)
  5. .assertStatus(HttpURLConnection.HTTP_OK)
  6. .as(XmlResponse.class)
  7. .rel("/page/links/link[@rel='post']/@href")
  8. .method(Request.POST)
  9. .body().formParam("text", text).back()
  10. .fetch();
  11. Logger.info(this, "message posted");
  12. }

相关文章