Configuration

[ Features | Commands | > Configuration | Permissions ]

Server Operators can customize any messages as desired for language, color, or formatting. Messages use indexed format elements as described in Java's MessageFormat usage. All messages recognize color or format codes prefixed with a section sign (§).

Once any configuration changes are made the plugin needs to be reloaded with the /consolecolor:reload command.

Formatting Codes

By default this plugin will simply hide the formatting codes from being displayed and attempt to find the closest ANSI equivalent. If you want to see the characters set the show-codes value to true.

show-codes: false

Entry Pattern

You can adjust the order of the timestamp, the log level name, and the message itself by altering the pattern value. You can add any other characters you want to format the line also.

Of note, {4} is the server timestamp that CraftBukkit is configured to use in the server.log file as a string. You can use {0} and go nuts with the SimpleDateFormat ability.

pattern: '§8{0,time,EEE hh:mm:ss a}§r [{1}] {2}' # 0 = Record Date, 1 = Level Name, 2 = Message, 3 = Level Value, 4 = Server Timestamp

Level Pattern

The logging level can be formatted even further if desired. If you want to change the colors or formatting for different log level names or even change the names that get displayed, this is where you'd do it.

levels: # 0 = Level Name
  SEVERE:  '§c SEVERE§r'
  WARNING: '§eWARNING§r'
  INFO:    '§8   INFO§r'
  CONFIG:  '§3 CONFIG§r'
  FINE:    '§6   FINE§r'
  FINER:   '§6  FINER§r'
  FINEST:  '§6 FINEST§r'
  (default): '{0}'

Defaults

http://i.imgur.com/eQ8Zd.jpg Default /plugins/ConsoleColor/config.yml


Comments

Posts Quoted:
Reply
Clear All Quotes