ModsFinder

Colorful Logger Lib

by handsome-steve

Colorful Logger Lib lets a Fabric mod color its console output by wrapping standard logger calls with ANSI color codes.

FabricCC0 1.0 UniversalOpen source1.17 – 1.21.6

What it does

Colorful Logger Lib is a developer library for Fabric mods. It adds a way to write ANSI-colored text through calls to the logger that Minecraft mods already use, so a mod author can tell log lines apart by color without changing how the logger is called. The library builds on org.slf4j.Logger and works regardless of the version it runs under, so it fits any mod that already logs through that interface.

The library is only needed while a mod is being developed and built, since the color output is a feature of the mod's own code. It is not a player-facing addition: a player installs a mod that uses it, and that mod declares the dependency. The project is released under the CC0 1.0 Universal license, which places the code in the public domain, and its source code and issue tracker are public. Files are published for Fabric alone, across 24 release versions 1.17 – 1.21.6, with 2.2.1 for 1.21.6 as the latest build from 2024-08-24.

The library is listed as a Library and first appeared on 2024-07-04. It has no required dependencies of its own, and it runs in whichever environment the depending mod targets.

Key features

  1. Colored log output

    Log messages can be wrapped in ANSI color codes, so output in the console is easier to scan.

  2. Predefined ANSI codes

    A set of standard ANSI codes is provided, so a developer does not need to write escape sequences by hand.

  3. Logger compatibility

    Colored output is produced through the org.slf4j.Logger interface that mods already use for logging.

Compatibility

Latest build for each game version and loader.

1.21.x7 of 7 versions with builds
1.21.62.2.1
1.21.52.2.1
1.21.42.2.1
1.21.32.2.1
1.21.22.2.1
1.21.12.2.1
1.212.2.1
1.20.x7 of 7 versions with builds
1.20.62.2.1
1.20.52.2.1
1.20.42.2.1
1.20.32.2.1
1.20.22.2.1
1.20.12.2.1
1.202.2.1
1.19.x5 of 5 versions with builds
1.18.x3 of 3 versions with builds
1.17.x2 of 2 versions with builds
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Use cases

Mod debugging

A mod author can give warnings, errors and debug lines different colors while testing a build in a development environment.

Readable server consoles

A server-side mod can mark important events in color, making them easier to find in a busy console.

Who it’s for: Mod developers who already log through org.slf4j.Logger and want colored console output without writing ANSI escape sequences themselves. Players and server owners do not need to install the library directly.

Questions

Does Colorful Logger Lib need Fabric API?

The page lists Fabric as the only loader with files, and no required dependencies are named. A depending mod may require other libraries separately.

Do players have to install Colorful Logger Lib?

Only a mod that uses it needs the library. It is a developer library, so a player installs it only when a mod they play declares it.

Which game versions does Colorful Logger Lib support?

Fabric files exist for 24 release versions, 1.17 – 1.21.6. The latest file is 2.2.1 for 1.21.6, published 2024-08-24.

In the catalog

Colorful Logger Lib is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 13,625 mods support Minecraft 1.21.6.

Similar mods

What the author says

Ever wanted to add some color to your LOGGER during the development of your minecraft mods in a simple, yet functional manner? Well look no further, Handsome Steve has you covered! This simple library allows you to do just that by utilizing a wide range of pre-defined ANSI codes.
handsome-steve, on the Modrinth page

Official listing

Owner
handsome-steve
Published
2024-07-04
Updated on Modrinth
2024-08-24
Facts verified
2026-10-15

Tags