ConsoleColor

[ > Features | Commands | Configuration | Permissions ]

  • Color console log entries
  • Change console log entry format (timestamp, position, etc.)
  • Does not change server.log file output, only console display

Do you spend a lot of time in your console? Would you like to enjoy reading through your console entries and not having to decipher a monochrome storm of characters?

Go from this:

With ConsoleColor

To this:

Without ConsoleColor

Troubleshooting

If you are having trouble determining why something isn't working, set log-level: ALL in the /plugins/ConsoleColor/config.yml file and restart your server. Wait for the problem to reoccur then paste the server.log file to somewhere like http://gist.github.com and then create a ticket with a link to the paste.

http://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of jd245 jd245 Nov 08, 2014 at 22:29 UTC - 1 like

    @EdGruberman: Go

    Thanks for the lead on log4j2. :-)

    I was able to get something similar to work (I'm running Spigot), though I don't know anything about XML so maybe someone else can tidy this up a bit. Following is a compilation of a couple different solutions I found online. First, you have to modify your startup line by adding:

    -Dlog4j.configurationFile=log4j2.xml
    

    So, something like:

    java -Dlog4j.configurationFile=log4j2.xml -d64 -server -XX:+UseConcMarkSweepGC -XX:MaxPermSize=128M -Xmx6G -jar spigot.jar
    

    Here is the log4j2.xml file (you place this in the same folder as your craftbukkit.jar or spigot.jar) Be sure to scroll down and get all of it:

    <?xml version="1.0" encoding="UTF-8"?>
    <Configuration status="WARN" packages="net.minecraft.util.com.mojang.util">
        <Appenders>
            <Console name="WINDOWS_COMPAT" target="SYSTEM_OUT"></Console>
            <Queue name="TerminalConsole">
                <PatternLayout pattern="[%highlight{%d{HH:mm:ss} %-5level]: %msg%n}{FATAL=red blink, ERROR=red, WARN=yellow bold, INFO=gray, DEBUG=green bold, TRACE=blue}"/>
            </Queue>
            <RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz">
                <PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" />
                <Policies>
                    <TimeBasedTriggeringPolicy />
                    <OnStartupTriggeringPolicy />
                </Policies>
            </RollingRandomAccessFile>
        </Appenders>
        <Loggers>
            <Root level="info">
                <filters>
                    <MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY" onMismatch="NEUTRAL" />
                </filters>
                <AppenderRef ref="WINDOWS_COMPAT"/>
                <AppenderRef ref="File"/>
                <AppenderRef ref="TerminalConsole"/>
            </Root>
        </Loggers>
    </Configuration>
    

    Using this gives you the following:

    Colored console in Spigot

    If anyone can clean this up or simplify it, please do. I just started playing with this so if I improve it, I'll post again. I wasn't able to add the "SEVERE" level to it, nor figure out how to get it to only highlight the level rather than the whole line. Hope someone finds this useful.

    DMG Avatar

    Check out my server: Diamond Miners Guild at 98.235.191.92:48362. Website: DiamondMinersGuild.enjin.com

    Up and running since September 15, 2012!

  • Avatar of ronfkingswanson ronfkingswanson Feb 02, 2014 at 12:20 UTC - 1 like

    any chance of an update just to allow 1.7 compatibility? getting this on boot

    [05:17:01 ERROR]: [ConsoleColor] Unsupported CraftBukkit version git-Spigot-1299 (MC: 1.7.2); java.lang.ClassNotFoun dException: edgruberman.bukkit.consolecolor.craftbukkit.CraftBukkit_v1_7_R1

    AFTERMATH: a Zombie Apocalypse Server || custom generated apocalyptic architecture || spaceribs.com || reddit.com/r/spaceribs

  • Avatar of EdGruberman EdGruberman Jan 10, 2014 at 17:52 UTC - 0 likes

    There are major changes in Minecraft's (and CraftBukkit's accordingly) logging mechanism. With the use of log4j you can control a lot of the formatting yourself now with an xml config file by default without a plugin. I need to find time to learn exactly what is possible with that configuration file first before I put too much time into this plugin unnecessarily.

    My impression is we are able to at least control date and level names both with format and color. I've also run across ideas of replacing occurrences of text with other characters. It may be possible to replace Minecraft color codes with ASCII equivalents just for the console output with that log4j xml config file. If so, this plugin is no longer necessary.

    If any of you that have used this plugin find some time before I do, please share with the rest of us!

    BFAK:EdGruberman,4223,87ddb49fb8184cdefde416a80eaca31fc4f154fac2fbbf3385dc9f58ddaf3bd0

  • Avatar of Nespeck Nespeck Jan 03, 2014 at 16:43 UTC - 0 likes

    @EdGruberman:

    Please update! I love this plugin :(

  • Avatar of Q2Lummox Q2Lummox Jan 01, 2014 at 16:29 UTC - 0 likes

    Update this plugin please! :S

  • Avatar of MatthewDMerrill MatthewDMerrill Dec 25, 2013 at 04:45 UTC - 0 likes

    Please update :)

  • Avatar of LegndPowerdNube LegndPowerdNube Dec 14, 2013 at 18:31 UTC - 0 likes

    Will this be updated?

    BFAK:90701487,f10294d3af913e4eff73e584910c0128f10bb9fd0cbb7a405b6facee14d5de57

  • Avatar of Bodyash Bodyash Jul 10, 2013 at 18:38 UTC - 0 likes

    @EdGruberman: Go

    don`t use Libigot. Believe me.

    http://monitoringminecraft.ru/chart/178.54.192.12%3A25565.png

  • Avatar of EdGruberman EdGruberman Jul 10, 2013 at 07:45 UTC - 0 likes

    @craftik7: Go

    I'm not sure I understand your recommendation entirely. Compiling only against Libigot would restrict this plugin to work with only Libigot servers (and 1.3.2 and earlier CraftBukkit servers actually since those were before the package versioning change). When someone were to attempt to use this plugin on a regular CraftBukkit server they would receive class not found exceptions since this plugin would only reference a non-versioned org.bukkit.craftbukkit package and CraftBukkit servers only have that package suffixed with a version now.

    I checked all your plugins and I could not find one that reference any org.bukkit.craftbukkit packages. So, if you are compiling against Libigot it shouldn't matter for your plugins since you are using only Bukkit API references. You could compile your plugins against the Bukkit API and be fine also. There is no reason for you to rely on Libigot.

  • Avatar of craftik7 craftik7 Jul 10, 2013 at 07:14 UTC - 0 likes

    @EdGruberman: Go

    Then use Libigot to compile it. With Libigot, it does not broke and we can use it on every Minecraft version. Thanks.

    How to do it:

    1. Remove all imports from Eclipse
    2. Import only Libigot
    3. Done (It works for me, and many others)

Table of contents

  1. 1 Troubleshooting

Facts

Date created
Jan 24, 2013
Category
Last update
Sep 20, 2013
Development stage
Release
Language
  • enUS
License
MIT License
Curse link
ConsoleColor
Downloads
36,905
Recent files

Authors