Skip to content

patricevoss/mclogs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mclo.gs

Paste, share & analyse your Minecraft server logs

About

The project mclo.gs was created in 2017 by the Aternos team after more than 4 years of running free Minecraft servers and supporting users with their problems. One of the main issues was the impossibility to easily share the main source of errors: The Minecraft server log file. mclo.gs solves this problem and even goes one step further with providing syntax highlighting and suggestions based on the log content to simply solve common errors.

Features

  • Copy + paste log sharing
  • Simple API for easy integration
  • Syntax highlighting
  • Line numbers
  • Suggestions (based on RegEx patterns)
  • Different storage backends (mongodb, redis, filesystem)

Adding suggestions

You can add suggestions as simple JSON files (No PHP knowledge necessary, only RegEx and JSON). All suggestions are located in core/suggestions. Use one of the existing folder or create a new one (this requires enabling it in the config). A suggestion has 4 different properties:

  • id (required): Unique ID for this suggestion, suggestions with the same ID are overwritten, can contain references from a pattern (see answer). Usually starts with "suggestion-".
  • patterns (required): Array with multiple RegEx pattern, should be as specific as possible.
  • answer (required): Answer/Suggestion for the problem, don't state the problem but suggest a possible solution with the problem as explanation (e.g. "Delete the plugin XXX, because it throws errors.", not "Plugin XXX throws errors."). You can use all references from the pattern here. If there is only one reference %s is enough, otherwise use %1$s, %2$s and so on.
  • remove (optional): Only necessary in specific cases. Can list multiple IDs in an array that should be removed, because this suggestion makes the other ones useless. Can also use references.

IDs and file names should be lower case, separated by -. Nested directories are currently not possible, but might be possible in the future.

Development setup

License

mclo.gs is open source software released under the MIT license, see license.

About

Paste, share and analyse Minecraft server logs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 73.9%
  • CSS 18.3%
  • Ruby 4.1%
  • JavaScript 3.2%
  • Shell 0.5%