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

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • 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