From 22f3c6d96fcb560c13445d4a6135ca3f01d27197 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Fri, 8 Sep 2017 18:48:13 -0400 Subject: Deleted a lot of code Deleted code that was not being used, and some of the images too. --- gamemode/shared/log.lua | 48 +++++++++++++++++++++++++++++++++++------------- 1 file changed, 35 insertions(+), 13 deletions(-) (limited to 'gamemode/shared/log.lua') diff --git a/gamemode/shared/log.lua b/gamemode/shared/log.lua index 1ede67f..ad5da46 100644 --- a/gamemode/shared/log.lua +++ b/gamemode/shared/log.lua @@ -4,20 +4,42 @@ local col = nrequire("colortheme.lua") local log = {} log.debug = fn.compose( - fn.curry( - MsgC, - col.console.cyan), - fn.curry( - string.format, - "[DEBUG] %s")) + fn.curry( + MsgC, + col.console.cyan + ), + fn.curry( + string.format, + "[DEBUG] %s" + ) +) + +log.info = fn.compose( + fn.curry( + MsgC, + col.console.blue + ), + fn.curry( + string.format, + "[INFO] %s" + ) +) log.warn = fn.compose( - fn.curry( - MsgC, - col.console.yellow), - debug.traceback, - fn.curry( - ErrorNoHalt, - "[WARNING]")) + fn.curry( + MsgC, + col.console.yellow + ), + debug.traceback, + fn.curry( + ErrorNoHalt, + "[WARNING]" + ) +) + +log.report = fn.curry( + file.Append, + "artery/report_log.txt" +) return log -- cgit v1.2.3-70-g09d2