Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 1f9784c

Browse files
committed
change the url and update the package to the new typewriter version
1 parent 35fc918 commit 1f9784c

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

src/main/lua/ga/cubicinc/logger/Main.lua

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/main/lua/ga/cubicinc/logger/LoggerClass.lua renamed to src/main/lua/nl/cubic-inc/logger/LoggerClass.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function Logger:initialize(Settings)
2121
Settings = Settings or {}
2222
Settings.Debug = Settings.Debug or false
2323

24-
self.Debug = Settings.Debug
24+
self.DebugMode = Settings.Debug
2525
end
2626

2727
do -- parse config
@@ -59,7 +59,9 @@ function Logger:Info(Msg, ...)
5959
end
6060

6161
function Logger:Debug(Msg, ...)
62-
Logger:Log(4, Msg, ... or "")
62+
if self.DebugMode == true then
63+
Logger:Log(4, Msg, ... or "")
64+
end
6365
end
6466

6567
return Logger
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
local Logger = Import("nl.cubic-inc.logger.LoggerClass")
2+
3+
return Logger
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
local Package = {}
22

33
function Package.OnInitialize()
4-
local Logger = Import("ga.cubicinc.logger.Main")
4+
local Logger = Import("nl.cubic-inc.logger.Main"):new({Debug = true})
55

66
Logger:Info("test")
77
Logger:Warn("test")
88
Logger:Error("test")
9+
Logger:Debug("test")
910
end
1011

1112
return Package

src/main/resources/package.info.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ return {
4040
Icon = "", -- Icon for the package, not used normally but can be used by some projects
4141
Environment = "*",
4242
Entrypoints = {
43-
Main = "ga.cubicinc.logger.Test"
43+
Main = "nl.cubic-inc.logger.Test"
4444
}
4545

4646
}

0 commit comments

Comments
 (0)