feat: add additional logging and write to file
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "utils.h"
|
||||
#include "spoofer.h"
|
||||
#include "log-sink-cout.h"
|
||||
#include "log-sink-file.h"
|
||||
#include "proxy-configurator.h"
|
||||
#include "cache-cleaner.h"
|
||||
|
||||
@@ -88,6 +89,7 @@ bool run()
|
||||
*/
|
||||
seallib::Logger mainLog("Main");
|
||||
mainLog.addSink(std::make_shared<ConOutSink>());
|
||||
mainLog.addSink(FileSink::getSharedInstance());
|
||||
|
||||
mainLog.info("Init");
|
||||
|
||||
@@ -141,6 +143,7 @@ bool run()
|
||||
}
|
||||
|
||||
mainLog.info("Proxy running, Ctrl+C to stop. Check system tray for options.");
|
||||
mainLog.info("Go to https://dbd.neru.rip/ for settings.");
|
||||
while (running)
|
||||
{
|
||||
tray.processMessages();
|
||||
|
||||
Reference in New Issue
Block a user