Negative Games Wiki
Discord
  • 👋Landing
  • 🎬Projects
    • 👮Punishments
      • 🖋️Commands
      • 📜Configuration
        • main.yml
        • messages.yml
        • Menus
          • history-main.yml
          • history.yml
          • note-delete-confirmation.yml
          • note-editor.yml
          • notes.yml
          • punish-confirm.yml
          • punish.yml
          • records-main.yml
          • records.yml
          • records-single.yml
          • staff-history-main.yml
          • staff-history.yml
          • staff-leaderboard.yml
    • 📑alumina
      • ItemBuilder
      • PotionBuilder
      • InputListener
      • Commands
      • DependencyLoader
      • Events Subscriber
      • Static Logger
Powered by GitBook
On this page

Was this helpful?

  1. Projects
  2. alumina

Static Logger

This utility allows you to statically log messages using the Bukkit logging system, with the added benefit of a configurable variable to disallow logging "non-required" log messages, but also that restriction can be bypassed under some conditions.

Example
public class ExamplePlugin extends AluminaPlugin {

    @Override
    public void load() {

    }

    @Override
    public void enable() {
        Logs.setDisabled(true); // Disable non-essential logs
        
        Logs.INFO.print("Hello, world!"); // This is a non-essential log
        
        Logs.INFO.print("Bye, world.", true); // This is an essential log
    }

    @Override
    public void disable() {

    }

}
PreviousEvents Subscriber

Last updated 1 year ago

Was this helpful?

🎬
📑