Commit 745bfd31 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Update logger

parent ed34a798
......@@ -194,8 +194,8 @@ void DefaultApi::ue_authentications_deregister_post_handler(
void DefaultApi::ue_authentications_post_handler(
const Pistache::Rest::Request& request,
Pistache::Http::ResponseWriter response) {
// cout << "------------ue authentications post handler---------" << endl;
Logger::ausf_server().info("--Received ue-authentications post Request");
Logger::ausf_server().info("--Received ue-authentications post Request");
// Getting the body param
......
......@@ -66,20 +66,9 @@ void Logger::_init(
std::stringstream ss;
ss << "[%Y-%m-%dT%H:%M:%S.%f] [" << app << "] [%n] [%l] %v";
// m_async_cmd = new _Logger("asnyc_c", m_sinks, ss.str().c_str());
// m_amf_app = new _Logger("amf_app", m_sinks, ss.str().c_str());
m_config = new _Logger("configurations", m_sinks, ss.str().c_str());
m_system = new _Logger("system", m_sinks, ss.str().c_str());
// m_sctp = new _Logger("sctp", m_sinks, ss.str().c_str());
// m_nas_mm = new _Logger("nas_mm", m_sinks, ss.str().c_str());
// m_ngap = new _Logger("ngap", m_sinks, ss.str().c_str());
// m_itti = new _Logger("itti", m_sinks, ss.str().c_str());
// m_amf_n2 = new _Logger("amf_n2", m_sinks, ss.str().c_str());
// m_task_amf_n2 = new _Logger("TASK_AMF_N2", m_sinks, ss.str().c_str());
// m_amf_n1 = new _Logger("amf_n1", m_sinks, ss.str().c_str());
// m_task_amf_n1 = new _Logger("TASK_AMF_N1", m_sinks, ss.str().c_str());
// m_amf_n11 = new _Logger("amf_n11", m_sinks, ss.str().c_str());
// m_task_amf_n11 = new _Logger("TASK_AMF_N11", m_sinks, ss.str().c_str());
m_ausf_app = new _Logger("ausf_app", m_sinks, ss.str().c_str());
m_ausf_server = new _Logger("ausf_server", m_sinks, ss.str().c_str());
}
......
......@@ -83,22 +83,10 @@ class Logger {
init(app.c_str(), log_stdout, log_rot_file);
}
// static _Logger &async_cmd(){return *singleton().m_async_cmd;}
// static _Logger &amf_app(){return *singleton().m_amf_app;}
static _Logger& config() { return *singleton().m_config; }
static _Logger& system() { return *singleton().m_system; }
// static _Logger &sctp(){return *singleton().m_sctp;}
// static _Logger &nas_mm(){return *singleton().m_nas_mm;}
// static _Logger &ngap(){return *singleton().m_ngap;}
// static _Logger &itti(){return *singleton().m_itti;}
// static _Logger &amf_n2(){return *singleton().m_amf_n2;}
// static _Logger &task_amf_n2(){return *singleton().m_task_amf_n2;}
// static _Logger &amf_n1(){return *singleton().m_amf_n1;}
// static _Logger &task_amf_n1(){return *singleton().m_task_amf_n1;}
// static _Logger &amf_n11(){return *singleton().m_amf_n11;}
// static _Logger &task_amf_n11(){return *singleton().m_task_amf_n11;}
static _Logger &ausf_app(){return *singleton().m_ausf_app;}
static _Logger& ausf_server() { return *singleton().m_ausf_server; }
// static _Logger &udm_ueau() { return *singleton().m_udm_ueau; }
private:
static Logger* m_singleton;
......@@ -116,22 +104,10 @@ class Logger {
std::string m_pattern;
// _Logger *m_async_cmd;
// _Logger *m_amf_app;
_Logger* m_config;
_Logger* m_system;
// _Logger *m_sctp;
// _Logger *m_nas_mm;
// _Logger *m_ngap;
// _Logger *m_itti;
// _Logger *m_amf_n2;
// _Logger *m_task_amf_n2;
// _Logger *m_amf_n1;
// _Logger *m_task_amf_n1;
// _Logger *m_amf_n11;
// _Logger *m_task_amf_n11;
_Logger *m_ausf_app;
_Logger* m_ausf_server;
// _Logger *m_udm_ueau;
};
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment