File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ Local<Value> LoggerClass::setLogLevel(const Arguments& args) {
193193
194194 try {
195195 auto conf = getEngineOwnData ();
196- conf->plugin -> getLogger (). setLevel (static_cast <LogLevel>(args[0 ].asNumber ().toInt32 () - 1 ));
196+ conf->logger -> setLevel (static_cast <LogLevel>(args[0 ].asNumber ().toInt32 () - 1 ));
197197 return Boolean::newBoolean (true );
198198 }
199199 CATCH (" Fail in SetLogLevel!" )
Original file line number Diff line number Diff line change @@ -89,10 +89,10 @@ Local<Value> ColorLog(const Arguments& args) {
8989 sout << prefix;
9090 for (int i = 1 ; i < args.size (); ++i) PrintValue (sout, args[i]);
9191 sout << " \x1b [0m" ;
92- getEngineOwnData ()->plugin -> getLogger (). info (sout.str ());
92+ getEngineOwnData ()->logger -> info (sout.str ());
9393 return Boolean::newBoolean (true );
9494 }
95- CATCH (" Fail in Log !" );
95+ CATCH (" Fail in ColorLog !" );
9696}
9797
9898Local<Value> FastLog (const Arguments& args) {
You can’t perform that action at this time.
0 commit comments