I mainly made LoggerService for my games to make it easier for people to report bugs and give me the actual error in the dev console, but it’s been super helpful for me so I decided to open source it for everyone to use
LoggerService, the all around solution for easy bug reporting on games! This module sends normally server sided errors to the client, all to make it easier for your members to find and report the bugs they encounter! As one of my friends put it, its the tool he “didn’t know he needed”
This module is very helpful if:
- Script is malfunctioning in public servers but not on the testing game, and you can’t find the errors
- You want general ease of bug reports
- You want to find bugs in your code easier. (Eliminates having to go to the server panel for errors)
LoggerService Documentation
Functions
function LoggerService.new()
- Returns: object Logger
Initialize the module
Logger Functions (Object initiated with LoggerService.new
function Logger:Error(Input : string, PrefixData: string?)
- Returns: nil
Logs Input
argument as an error on the client
function Logger:Warn(Input : string, PrefixData: string?)
Logs Input
argument as an warning on the client
function Logger:Info(Input : string, PrefixData: string?)
Logs Input
argument as a standard print on the client
Function argument info
string Logger.PrefixData
Will allow you to add 1 prefix to the log. Automatically put into brackets.
string Logger.Input
The actual error provided to logger
This module does need an intercept for its client side, but this can be copied from below:
repeat task.wait() until game.ReplicatedStorage:FindFirstChild('LoggerEvent')
local Event : RemoteEvent = game.ReplicatedStorage:FindFirstChild('LoggerEvent')
local Logger = require(9513717898)
Event.OnClientEvent:Connect(Logger.Remote)
I hope this module helps you smooth out your bug reports and makes finding bugs that much easier!
Module require: local LoggerService = require(9513717898)
Module File: LoggerService.lua (2.3 KB)
Enjoy