@@ -37,7 +37,7 @@ enum class logLevel {
3737class Log {
3838 private:
3939 // Log file name
40- std::string log_fname ;
40+ std::string log_path ;
4141
4242 // Logging inactive by default
4343 std::unordered_map<logClass, logLevel> log_config = {
@@ -53,15 +53,15 @@ class Log {
5353
5454 public:
5555 // Set log file name
56- void set_log_file_name (const std::string& file_name );
56+ void set_log_file_path (const std::string& file_path );
5757
5858 // Set log level
5959 void set_log_level (const logClass component_id, const logLevel log_level_id);
6060 void set_log_level (const logClass component_id,
6161 const Napi::Value logLevelValue);
6262
6363 // Default log filename
64- explicit Log (std::string log_fname = " _noderfc.log" );
64+ explicit Log (std::string log_path = " _noderfc.log" );
6565 ~Log ();
6666
6767 // Write regular arguments. Must be defined in header becuse of variadic
@@ -85,7 +85,7 @@ class Log {
8585
8686 // Write log message
8787 ofstream ofs;
88- ofs.open (log_fname .c_str (), ofstream::out | ios::app);
88+ ofs.open (log_path .c_str (), ofstream::out | ios::app);
8989 ofs << endl
9090 << endl
9191 << date::format (" %F %T" , now) << " UTC [" << timestamp () << " ] >> "
@@ -105,7 +105,7 @@ class Log {
105105 if (log_level_id > log_config[component_id]) {
106106 return ;
107107 }
108- FILE* fp = fopen (log_fname .c_str (), " a" );
108+ FILE* fp = fopen (log_path .c_str (), " a" );
109109 fprintf (fp, " %s" , " '" );
110110 fprintfU (fp, message);
111111 fprintf (fp, " %s" , " '" );
0 commit comments