LoggerService: The simple yet effective Bug finding/reporting solution for your games

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

4 Likes

Consider changing the name as LogService is already a built-in service.

https://developer.roblox.com/en-us/api-reference/class/LogService

I feel dumb because I was actually looking at this service when trying to find a solution for custom logging almost a week ago, but definitely will do.

Edit: For those of you looking at log service (built in version), it is not helpful

thanks!

I would recommend having 3 functions (Logger:Info() etc.) instead of having one function where you have to put in log type.

good idea, I will implement that right now and update the module

1 Like

Update logs v1.1.0

  • Added more specific functions (error, info, warn) instead of just :Log()
  • Improved documentation
  • Optimized code

Update logs v1.1.1

  • Just removed some unnecessary redundancies in the code/unused items

what are the uses for it? i dont get it

Its primarily to allow people with bug report channels to send normally server sided errors to the client, as my post said. Of course, you could make this yourself, but i just made the module as a tool for people to use and not reinvent the wheel.