Skip to content

Commit 7686ac9

Browse files
committed
GoggaLogger
- Any method which is templated AND marked as `final` will NOT be virtual. - Undid the `final` so as to provide us with vtable support when using via the super type `Logger`. Prior to this it would use the ones declared directly in `Logger` and not the others as effectively no override was present.
1 parent e9f45e2 commit 7686ac9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/gogga/core.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public class GoggaLogger : Logger
7171
* __FUNCTION__ = compile time usage function
7272
* __PRETTY_FUNCTION__ = compile time usage function (pretty)
7373
*/
74-
public final void error(TextType...)(TextType segments,
74+
public void error(TextType...)(TextType segments,
7575
string c1 = __FILE_FULL_PATH__,
7676
string c2 = __FILE__, ulong c3 = __LINE__,
7777
string c4 = __MODULE__, string c5 = __FUNCTION__,
@@ -114,7 +114,7 @@ public class GoggaLogger : Logger
114114
* __FUNCTION__ = compile time usage function
115115
* __PRETTY_FUNCTION__ = compile time usage function (pretty)
116116
*/
117-
public final void info(TextType...)(TextType segments,
117+
public void info(TextType...)(TextType segments,
118118
string c1 = __FILE_FULL_PATH__,
119119
string c2 = __FILE__, ulong c3 = __LINE__,
120120
string c4 = __MODULE__, string c5 = __FUNCTION__,
@@ -157,7 +157,7 @@ public class GoggaLogger : Logger
157157
* __FUNCTION__ = compile time usage function
158158
* __PRETTY_FUNCTION__ = compile time usage function (pretty)
159159
*/
160-
public final void warn(TextType...)(TextType segments,
160+
public void warn(TextType...)(TextType segments,
161161
string c1 = __FILE_FULL_PATH__,
162162
string c2 = __FILE__, ulong c3 = __LINE__,
163163
string c4 = __MODULE__, string c5 = __FUNCTION__,
@@ -201,7 +201,7 @@ public class GoggaLogger : Logger
201201
* __FUNCTION__ = compile time usage function
202202
* __PRETTY_FUNCTION__ = compile time usage function (pretty)
203203
*/
204-
public final void debug_(TextType...)(TextType segments,
204+
public void debug_(TextType...)(TextType segments,
205205
string c1 = __FILE_FULL_PATH__,
206206
string c2 = __FILE__, ulong c3 = __LINE__,
207207
string c4 = __MODULE__, string c5 = __FUNCTION__,

0 commit comments

Comments
 (0)