congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
LoggerWrapper
Code IndexAdd Tabnine to your IDE (free)

How to use
LoggerWrapper
in
us.myles.ViaVersion.sponge.util

Best Java code snippets using us.myles.ViaVersion.sponge.util.LoggerWrapper (Showing top 6 results out of 315)

origin: MylesIsCool/ViaVersion

@Override
public void log(Level level, String msg, Object[] params) {
  log(level, MessageFormat.format(msg, params)); // workaround not formatting correctly
}
origin: Matsv/ViaBackwards

@Subscribe(order = PostOrder.LATE)
public void onProxyStart(ProxyInitializeEvent e) {
  // Setup Logger
  this.logger = new LoggerWrapper(loggerSlf4j);
  // Init!
  this.init();
}
origin: Matsv/ViaBackwards

@Listener(order = Order.LATE)
public void onGameStart(GameInitializationEvent e) {
  // Setup Logger
  this.logger = new LoggerWrapper(loggerSlf4j);
  // Init!
  this.init();
}
origin: Gerrygames/ViaRewind

@Listener(order = Order.LATE)
public void onServerStart(GameAboutToStartServerEvent e) {
  // Setup Logger
  this.logger = new LoggerWrapper(container.getLogger());
  // Init!
  File configFile = new File(defaultConfig.getParentFile(), "config.yml");
  if (!configFile.exists()) {
    saveDefaultConfig(configFile);
  }
  try {
    loader = YAMLConfigurationLoader.builder().setFile(configFile).build();
    rootNode = loader.load();
  } catch (Exception ex) {
    ex.printStackTrace();
  }
  this.init(new ViaRewindConfig() {
    @Override
    public CooldownIndicator getCooldownIndicator() {
      return CooldownIndicator.valueOf(rootNode.getNode("cooldown-indicator").getString("TITLE"));
    }
    @Override
    public boolean isReplaceAdventureMode() {
      return rootNode.getNode("replace-adventure").getBoolean(false);
    }
    @Override
    public boolean isReplaceParticles() {
      return rootNode.getNode("replace-particles").getBoolean(false);
    }
  });
}
origin: MylesIsCool/ViaVersion

@Override
public void log(LogRecord record) {
  log(record.getLevel(), record.getMessage());
}
origin: MylesIsCool/ViaVersion

@Listener
public void onGameStart(GameInitializationEvent event) {
  // Setup Logger
  logger = new LoggerWrapper(container.getLogger());
  // Setup Plugin
  conf = new SpongeViaConfig(container, defaultConfig.getParentFile());
  SpongeCommandHandler commandHandler = new SpongeCommandHandler();
  game.getCommandManager().register(this, commandHandler, "viaversion", "viaver", "vvsponge");
  getLogger().info("ViaVersion " + getPluginVersion() + " is now loaded!");
  // Init platform
  Via.init(ViaManager.builder()
      .platform(this)
      .commandHandler(commandHandler)
      .injector(new SpongeViaInjector())
      .loader(new SpongeViaLoader(this))
      .build());
}
us.myles.ViaVersion.sponge.utilLoggerWrapper

Most used methods

  • <init>
  • warning

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Permission (java.security)
    Legacy security code; do not use.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now