Configuration
Configuration example
filters: - type: ExactFilter expression: Can't keep up! Did the system time change, or is the server overloaded? case-sensitive: true #remove my own logs... - type: LoggerFilter expression: 'alexoft.tlmd.main' case-sensitive: false - type: RegexFilter expression: '(.{1,16})\[/([^\]]+?)\] logged in with entity id ([0-9]+?) at \(\[(.+?)\] (.+?)\)' log-to-file: logins.log - type: LevelFilter expression: 'INFO' log-to-file: level_info.log - type: AlterateFilter expression: 'Done \(([0-9,]*?)s\)! For help, type "help" or "\?"' replace: 'Server is ready ! It took $1 seconds :)'
Filters type
All filters accept a log-to-file option, to save the filtered logs.
ExactFilter
mask when the log is identical to expression
options :
- case-sensitive
RegexFilter
mask when the log match the regex expression
LoggerFilter
mask when the log came from a specified Logger. The logger name is the main class of the plugin, you can find it by opening the plugin's jar like a zip file, and reading the line main in the file "plugin.yml"
options :
- case-sensitive
LevelFilter
mask when the log is at a certain level
AlterateFilter
Replace a line with another in the log file. expression should be a regex
requiered option :
- replace
PartialFilter
mask when the log contains expression
options :
- case-sensitive
config.yml
force-filter: enable: false interval: 20 summary-on-start: true use-color-codes: true separate-logs: enable: false directory: 'logs' remove-colors-on-file: true remove-from-main-file: false
- force-filter : optionnal, enable if you have problems with logs not being filtered after some time. Interval is in seconds
- separate-logs : if enabled, save one log file per plugins, useful if you have a lots of plugins
Thank you for this!
Actually the Can't keep up log doesn`t need to be filtered as you can disable it in bukkit.yml file!
Can you "hide" the Unknown command message with this plugin?
@deleted_7536780
That's a alterate filter. Try this:
type: AlterateFilter
expression: '(.{0,16}) \[/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}):\d{3,6}\] logged in with entity id \d{1,4} at \(\[(.+?)\] (.+?)\)'
replace: '$1 logged in with IP $2\.'
Or if you wanted the port too:
type: AlterateFilter
expression: '(.{0,16}) \[/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}:\d{3,6})\] logged in with entity id \d{1,4} at \(\[(.+?)\] (.+?)\)'
replace: '$1 logged in with IP $2\.'
@xMusicZ
Are you referring to the one that the player sees ingame? If so, then no. This plugin blocks console and log messages.
Hello. I love your plugin. The only problem is it leaks ram... and fast! Every time it runs (i set the timer from 20 to 1) you see it go up with 1 MB. Not a big problem cause I have 16GB... But still. On busy days I cannot use a ram eating plugin. Is it possible for you to fix this?
@b4rtj4h
I never noticed your comment.. Post on the main page, not here :) Are you sure that it's my plugin that cause this memory leaks ? And disable force-filer in config, it's optional.
Disabling Bukkit 1.3.2 Logging on some command.
filters:
- type: PartialFilter
expression: 'issued server command: /somecommand'
Disabling all Bukkit 1.3.2 command logging.
filters:
- type: PartialFilter
expression: 'issued server command:'
@XtenDvas
Thanks!!!
Sorry to bug anyone, ive tryed reading the config file. but don't understand it. Im trying to hide a few things.. maybe someone can help me. I want to hide these..
Thank you in Advance.
[server] INFO list. How do i block this!! ?? it wont work