Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Heromyth committed Jul 27, 2021
1 parent 75c6d6e commit 4d0bf31
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions source/hunt/framework/application/Application.d
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,8 @@ final class Application {
logconf.maxSize = conf.maxSize;
logconf.maxNum = conf.maxNum;

import core.thread;
import std.conv;
import std.process;
import std.datetime;
import std.json;
Expand All @@ -497,8 +499,8 @@ final class Application {
jv["module"] = myFunc;
jv["funcName"] = myFunc;
jv["line"] = line;
jv["thread"] = tid;
jv["threadName"] = tid;
jv["thread"] = tid.to!long;
jv["threadName"] = Thread.getThis().name();
jv["process"] = thisProcessID();
jv["message"] = msg;
return jv.toString();
Expand Down Expand Up @@ -603,3 +605,8 @@ final class Application {
Application app() {
return Application.instance();
}


Logger filebeatLogger() {
return app().logger();
}

0 comments on commit 4d0bf31

Please sign in to comment.