Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit f326188

Browse files
committed
New plib logs
1 parent dbabd5e commit f326188

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

lua/autorun/!!!sh_plib.lua

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -206,22 +206,26 @@ do
206206
end
207207

208208
-- Logs
209-
function Info( str, ... )
210-
Log( 'INFO', nil, str, ... )
211-
end
209+
do
212210

213-
function Error( str, ... )
214-
Log( 'ERROR', 'red', str, ... )
215-
end
211+
local logger = Logger( addonName )
216212

217-
function Warn( str, ... )
218-
Log( 'WARN', 'red_orange', str, ... )
219-
end
213+
function Info( str, ... )
214+
logger:Info( str, ... )
215+
end
220216

221-
function Debug( str, ... )
222-
if DeveloperMode then
223-
Log( 'DEBUG', 'green', str, ... )
217+
function Error( str, ... )
218+
logger:Error( str, ... )
224219
end
220+
221+
function Warn( str, ... )
222+
logger:Warn( str, ... )
223+
end
224+
225+
function Debug( str, ... )
226+
logger:Debug( str, ... )
227+
end
228+
225229
end
226230

227231
-- Include

0 commit comments

Comments
 (0)