updated dependencies.
This commit is contained in:
parent
ee6e915f4d
commit
2010008489
4
dub.json
4
dub.json
|
@ -4,8 +4,8 @@
|
|||
],
|
||||
"copyright": "Copyright © 2023, Andrew Lalis",
|
||||
"dependencies": {
|
||||
"dlog": "~>0.3.3",
|
||||
"slf4d": "~>1.3.0"
|
||||
"dlog": "~>0.3.19",
|
||||
"slf4d": "~>2.1.0"
|
||||
},
|
||||
"description": "DLog provider implementation for SLF4D",
|
||||
"license": "MIT",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"fileVersion": 1,
|
||||
"versions": {
|
||||
"dlog": "0.3.3",
|
||||
"slf4d": "1.3.0"
|
||||
"dlog": "0.3.19",
|
||||
"slf4d": "2.1.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ class DLogHandler : LogHandler {
|
|||
* Params:
|
||||
* msg = The message to handle.
|
||||
*/
|
||||
public shared void handle(LogMessage msg) {
|
||||
public shared void handle(immutable LogMessage msg) {
|
||||
Context ctx = new Context();
|
||||
ctx.setLevel(DLogProvider.mapLevelToDLog(msg.level));
|
||||
synchronized(this.dlogLogger) {
|
||||
|
@ -60,11 +60,11 @@ class DLogHandler : LogHandler {
|
|||
ctx,
|
||||
msg.message,
|
||||
"",
|
||||
msg.sourceContext.fileName,
|
||||
cast (ulong) msg.sourceContext.lineNumber,
|
||||
msg.sourceContext.moduleName.dup,
|
||||
"",
|
||||
0,
|
||||
cast(string) msg.sourceContext.moduleName.dup,
|
||||
"",
|
||||
cast(string) msg.sourceContext.functionName.dup
|
||||
msg.sourceContext.functionName.dup
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue