Skip to content

gLogs is a MySQL logging framework for Garry's Mod. It permits server admins to easily look through their logs on a web interface.

License

Notifications You must be signed in to change notification settings

Starfox64/gLogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gLogs

gLogs is a MySQL logging framework for Garry's Mod. It permits server admins to easily look through their logs on a web interface.

Requirements

Installation

To install gLogs simply drag and drop the addons folder in your 'garrysmod' root folder. Open 'addons/gLogs/lua/glogs/sv_config.lua' in a text editor and enter your MySQL credentials as well as your server id, the log expiration time and if you wish to enable some of the existing log hooks already made. Make sure that your server id is different for every server that is connecting to your database.

To install gLogs on your website simply copy the files from the 'Web' folder to the root or in a folder of your website. Now open your web browser and navigate to 'www.yourwebsite.com/yourdirectory' and follow the instructions on screen.

To integrate gLogs to your existing gamemode or logging addon you may use the example provided for ULX in 'README.txt'.

gLogs for Devs

if gLogs then -- Let's check if gLogs is installed.
    gLogs.AddLog("mylogtype","MyFancyLog",false)
end

Arguments:

  • Log Type (string): The type of log. This will be used as a filter on the website.
  • Log (string): The text that is your log.
  • No Timestamp (bool): If you wish to disable gLogs timestamps.

About

gLogs is a MySQL logging framework for Garry's Mod. It permits server admins to easily look through their logs on a web interface.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages