Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1.41 KB

README.md

File metadata and controls

35 lines (29 loc) · 1.41 KB

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.