Skip to content
🚧 This project and documentation is under construction and may be inaccurate. Packages and APIS may not be ready or available. 🚧

Logger

This tool provides the engine’s logger and a listener for logs sent from a running Minecraft instance.

A consola instance used for all engine output (info, warn, error, debug, etc.).

const { cauldronLogger } = require('@jackcooperdev/cauldronengine/logger');
cauldronLogger.info('Hello from Cauldron');

Starts a TCP server on 127.0.0.1:9500 that receives log output from Minecraft (sent by the injected logging config, or by legacy logging for versions without one) and prints it with the matching log level.

The function resolves true when the game disconnects and rejects if the server cannot start (for example, if the port is already in use).

It takes the parameter:

Associates the logger with a session.