From 68a0fbc9904c4f5b84bd53ac49166ba9a600168b Mon Sep 17 00:00:00 2001 From: Ground0 Date: Wed, 29 Mar 2023 10:45:53 +0200 Subject: [PATCH] Logger Change in lhttpd - didn't work this way currently --- lhttpd.pb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lhttpd.pb b/lhttpd.pb index 6dfd325..728c995 100644 --- a/lhttpd.pb +++ b/lhttpd.pb @@ -118,8 +118,8 @@ lhs_log::Init() ;* Accesslog = lhs_log_ext::Create("Accesslog") Errorlog = lhs_log_ext::Create("Errorlog") -lhs_log::Out("Errorlog UUID:"+Errorlog) -lhs_log::Out("Accesslog UUID:"+Accesslog) +lhs_log_ext::OutL(lhs_web::get_config(lhs_web::#conf_Debug_logUUID), lhs_log_ext::#Debugging,"Errorlog UUID:"+Errorlog) +lhs_log_ext::OutL(lhs_web::get_config(lhs_web::#conf_Debug_logUUID), lhs_log_ext::#Debugging,"Accesslog UUID:"+Accesslog) lhs_web::set_config(lhs_web::#conf_Access_logUUID, Accesslog) lhs_web::set_config(lhs_web::#conf_Error_logUUID, Errorlog) lhs_log_ext::SetLogFile(Accesslog, lhs_web::get_config(lhs_web::#conf_access_logfile)) @@ -132,11 +132,11 @@ lhs_log_ext::Init(Errorlog) ;* If lhs_web::start_server() - lhs_log::Out("Server started:") - lhs_log::Out("HTTP Port:"+ lhs_web::get_config(lhs_web::#conf_HTTP_port)) - lhs_log::Out("HTTPS Port:"+ lhs_web::get_config(lhs_web::#conf_HTTPS_port)) + lhs_log_ext::OutL(lhs_web::get_config(lhs_web::#conf_Debug_logUUID), lhs_log_ext::#Debugging,"Server started:") + lhs_log_ext::OutL(lhs_web::get_config(lhs_web::#conf_Debug_logUUID), lhs_log_ext::#Debugging,"HTTP Port:"+ lhs_web::get_config(lhs_web::#conf_HTTP_port)) + lhs_log_ext::OutL(lhs_web::get_config(lhs_web::#conf_Debug_logUUID), lhs_log_ext::#Debugging,"HTTPS Port:"+ lhs_web::get_config(lhs_web::#conf_HTTPS_port)) Else - lhs_log::Out("Serverstart failed.") + lhs_log_ext::OutL(lhs_web::get_config(lhs_web::#conf_Debug_logUUID), lhs_log_ext::#Debugging,"Serverstart failed.") End EndIf