Code Monkey home page Code Monkey logo

nsss-log-cleaner's Introduction

NSSS log cleaner

Can't find something in the log file for your NSSS Minecraft server because of irrelevant spam?
This little script filters out all unnecessary system messages so you can focus on player activity.

NOTE: This utility was intended for Minecraft servers running on NSSS 1.1.11_111-1

How to use

When run, the script will ask for the file path of the log file to clean. The script will take the contents of that file and put it into the newly generated cleaned.log.

TIP: Put the log file into the same directory as the script, that way you only have to write the file name and not the full path. You will be prompted for the path anyways, just ignore that. Just write the name.

Example: server.log and the script are in the same directory, just enter "server.log" when prompted for a path.

Custom Filters

The script uses the contents of filter.json to filter out any unwanted messages. If the contents of a line in that file matches even a small part of log line, the log line is binned. You can add your own filters onto the default assortment by copy-pasting certain parts of lines you want to remove.

WARNING: When adding filters, make sure that they are not too short or include phrases that may appear in chat messages. If they do, the chat messages will be filtered out.

Further customization / Note on incompleteness

Unfortuntely there's easy way to customize the look of the cleaned log files. If you really want to, go in and modify the archaic script I made in a day. It's really messy because it was originally for personal use, but I might make customization easier in the future (probably not). If you have any suggestions for how the logs could be formatted better, let me know by opening an issue on this repo!

If you find any inconsistencies in the cleaned log file, it's probably because of edge cases that weren't filtered out or accounted for in my formatting. This was really just a personal project and I had a single 333203 line long log file to clean up. I don't know how your server differs from the one where my log originates from, but if you think I missed something make sure to open an issue and let me know.

nsss-log-cleaner's People

Contributors

spectralpixel avatar the-last-cookie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.