aboutsummaryrefslogtreecommitdiff
path: root/gamemode/shared/log.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2017-09-08 18:48:13 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2017-09-08 18:48:13 -0400
commit22f3c6d96fcb560c13445d4a6135ca3f01d27197 (patch)
treebbabd4bc9d6b96acbbc6248833c602f8f3249a04 /gamemode/shared/log.lua
parent13a87c24b79ff4db6e1917409ce8a11b1d72b6e6 (diff)
downloadartery-22f3c6d96fcb560c13445d4a6135ca3f01d27197.tar.gz
artery-22f3c6d96fcb560c13445d4a6135ca3f01d27197.tar.bz2
artery-22f3c6d96fcb560c13445d4a6135ca3f01d27197.zip
Deleted a lot of code
Deleted code that was not being used, and some of the images too.
Diffstat (limited to 'gamemode/shared/log.lua')
-rw-r--r--gamemode/shared/log.lua48
1 files changed, 35 insertions, 13 deletions
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