List of usage examples for io.vertx.core.logging LoggerFactory getLogger
@Deprecated public static Logger getLogger(final String name)
From source file:examples.CoreExamples.java
License:Open Source License
public void example18(String className, Exception exception) { // Note -these classes are Java only // You would normally maintain one static instance of Logger per Java class: Logger logger = LoggerFactory.getLogger(className); logger.info("something happened"); logger.error("oops!", exception); }
From source file:io.apiman.gateway.platforms.vertx3.common.config.VertxLoggerDelegate.java
License:Apache License
@Override public IApimanLogger createLogger(String name) { return new VertxApimanLogger(LoggerFactory.getLogger(name)); }
From source file:io.apiman.gateway.platforms.vertx3.common.config.VertxLoggerDelegate.java
License:Apache License
@Override public IApimanLogger createLogger(Class<?> klazz) { return new VertxApimanLogger(LoggerFactory.getLogger(klazz)); }
From source file:net.kuujo.vertigo.instance.impl.ControlledInputConnection.java
License:Apache License
public ControlledInputConnection(Vertx vertx, InputConnectionContext context, VertigoMessageFactory messageFactory) { this.vertx = vertx; this.eventBus = vertx.eventBus(); this.context = context; this.messageFactory = messageFactory; this.inAddress = String.format("%s.in", context.port().input().component().address()); this.outAddress = String.format("%s.out", context.port().input().component().address()); this.log = LoggerFactory.getLogger(String.format("%s-%s", ControlledInputConnection.class.getName(), context.port().input().component().address())); feedbackTimerID = vertx.setPeriodic(MAX_BATCH_TIME, internalTimer); }
From source file:net.kuujo.vertigo.instance.impl.ControlledOutputConnection.java
License:Apache License
public ControlledOutputConnection(Vertx vertx, OutputConnectionContext context) { this.vertx = vertx; this.eventBus = vertx.eventBus(); this.context = context; this.log = LoggerFactory.getLogger(String.format("%s-%s", ControlledOutputConnection.class.getName(), context.port().output().component().address())); }
From source file:net.kuujo.vertigo.instance.impl.InputCollectorImpl.java
License:Apache License
public InputCollectorImpl(Vertx vertx, InputContext context, ComponentInstanceFactory factory) { this.vertx = vertx; this.context = context; this.logger = LoggerFactory .getLogger(String.format("%s-%s", InputCollectorImpl.class.getName(), context.component().name())); init(factory);//from w ww. java 2 s .c o m }
From source file:net.kuujo.vertigo.instance.impl.OutputCollectorImpl.java
License:Apache License
public OutputCollectorImpl(Vertx vertx, OutputContext context, ComponentInstanceFactory factory) { this.vertx = vertx; this.context = context; this.logger = LoggerFactory .getLogger(String.format("%s-%s", OutputCollectorImpl.class.getName(), context.component().name())); init(factory);//from w w w .j a v a2 s. co m }
From source file:org.entcore.conversation.service.impl.DefaultConversationService.java
License:Open Source License
public DefaultConversationService(Vertx vertx, String applicationName) { eb = Server.getEventBus(vertx);/*from w ww . j a v a 2 s. com*/ neo = new Neo(vertx, eb, LoggerFactory.getLogger(Neo.class)); this.applicationName = applicationName; this.maxFolderDepth = Config.getConf().getInteger("max-folder-depth", Conversation.DEFAULT_FOLDER_DEPTH); }
From source file:org.sfs.filesystem.volume.VolumeV1.java
License:Apache License
public VolumeV1(Path path) { this.basePath = path; this.metaFilePath = metaFilePath(basePath); this.dataFilePath = dataFilePath(basePath); this.indexFilePath = indexFilePath(basePath); logger = LoggerFactory.getLogger(VolumeV1.class.getName() + "." + join(basePath)); gcLogger = LoggerFactory.getLogger(VolumeV1.class.getName() + "." + join(basePath) + ".gc"); }