New plugin hub projects will default to using the same logging configuration as the standard RuneLite client.
RuneLite uses logback-classic, with a configuration to log to both the console,
as well as %userprofile%/.runelite/logs on Windows, or ~/.runelite/logs on macOS and Linux.
This configuration also only logs at the INFO level.
DEBUG Level Logging
To enable DEBUG level logging, you can use the --debug CLI flag, as described in Using the client developer tools.
Using Logging
The @Slf4j annotation provided by Lombok will automatically generate a log field within your class.
You should use this method of instantiating a logger in most cases.
Logging statements can then be generated with log.info, log.debug, and similar.
Keep in mind that INFO level logging will be included in normal user logs,
so try to avoid excessive logging at this level.
Information that is only relevant to a developer working on the plugin should be logged at the DEBUG level.
Changing the default logging behaviour - Plugin Hub only
If you prefer to use an entirely different logging configuration, you can create your own logback-test.xml within your project's src/test/resources folder. This file must be a test resource, so that it is not included in your plugin distribution. As an example, the following logback-test.xml file would log only to console, with the INFO level, excluding any specified packages that would log at DEBUG level:
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<!-- configure debug level packages here -->
<logger name="my.plugin.package.here" level="DEBUG" />
<root level="DEBUG">
<appender-ref ref="STDOUT"/>
</root>
</configuration>
More information on configuring logback-classic can be found in the logback-classic docs.
Table of Contents
User Guide
- FAQ
- GPU FAQ
- RuneLite Launcher Configuration
- Verifying Launcher Authenticity
- Troubleshooting problems with the client
- Disable Hardware Acceleration
- Change DPI Scaling (Ubuntu 20 w/ Gnome)
- Information about the Plugin Hub
- General Features
- Plugin Configuration
- Agility
- Ammo
- Animation Smoothing
- Anti Drag
- Attack Styles
- Bank
- Bank Tags
- Barbarian Assault
- Barrows Brothers
- Blast Furnace
- Blast Mine
- Boosts Information
- Boss Timers
- Camera
- Cannon
- Chambers of Xeric
- Chat Channels
- Chat Color
- Chat Commands
- Chat Filter
- Chat History
- Chat Notifications
- Chat Timestamps
- Clue Scroll
- Combat Level
- Cooking
- Corporeal Beast
- Custom Cursor
- Daily Task Indicator
- Default World
- Diary Requirements
- Discord
- DPS Counter
- Emojis
- Entity Hider
- Examine
- FPS Control
- Fairy Rings
- Fishing
- Friend List
- Friend Notes
- GPU
- Grand Exchange
- Ground Items
- Ground Markers
- Herbiboar
- HiScore
- Hunter
- Idle Notifier
- Implings
- Info Panel
- Instance Map
- Interface Styles
- Inventory Grid
- Inventory Tags
- Inventory Viewer
- Item Charges
- Item Identification
- Item Prices
- Item Stats
- Key Remapping
- Kingdom of Miscellania
- Kourend Library
- Login Screen
- Loot Tracker
- Low Detail
- Mage Training Arena
- Menu Entry Swapper
- Metronome
- Minimap
- Mining
- Motherlode Mine
- Mouse Tooltips
- Music
- NPC Aggression Timer
- NPC Indicators
- Nightmare Zone
- Notes
- Object Markers
- Opponent Information
- Party
- Pest Control
- Player Indicators
- Player-owned House
- Poison
- Prayer
- Puzzle Solver
- Pyramid Plunder
- Quest List
- Random Events
- Regeneration Meter
- Report Button
- Run Energy
- Rune Pouch
- RuneLite
- Runecraft
- Screen Markers
- Screenshot
- Skill Calculator
- Skybox
- Slayer
- Smelting
- Special Attack Counter
- Spellbook
- Status Bars
- Stretched Mode
- Team
- Tears Of Guthix
- Tile Indicators
- Time Tracking
- Timers & Buffs
- Tithe Farm
- Twitch
- Virtual Levels
- Wiki
- Wintertodt
- Woodcutting
- World Hopper
- World Map
- XP Drop
- XP Globes
- XP Tracker
- XP Updater
- Zalcano
Developer's Guide
- Plugin Development
- RuneLite Core Development
- Using Git with RuneLite
- Using Jagex Accounts
- Working with client scripts
- Using the client developer tools
- VarPlayers, VarBits, and VarClients
- Rejected or Rolled Back Features
Please join our Discord if you notice anything wrong or would like to discuss an addition to the wiki. Changes can be submitted to our wiki repository.