Sueta
CU

CustomLogging

1.1.1

Log any message to any file

·Plugin

Log messages to different files using the command /log <loggerId> <message> (permisson: customlogging.writelog to write logs at all, customlogging.writelog.<loggerId> to write to that specific logger, customlogging.writelog.* to write to any logger).
'loggerId' must be registered in the config file.

The plugin can be reloaded with the command /customloggingreload (permission: customlogging.reload ).

Config file:

message   : 
    ...   
loggers  :  
  <loggerId>  :  
    file   :  <filePath>  #relative to server jar; Supports PlaceholderAPI   
    format   :  <format>  #Supports PlaceholderAPI  
   #example   
  death  :  
    file   :  customlogs/deaths.log  
    format   :   "%player_name% saw {message} die"   #{message} is the <message> argument from the command

When Ernie executes the command /log death Bert the message "Ernie saw Bert die" will be appended to to file deaths.log in the directory customlogs .

This plugin supports PlaceholderAPI , but doesn't require it (soft dependency)

For bug reports and suggestions please use GitHub Issues

Similar projects

Plugin →