File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ Outputs something like this:
78
78
```
79
79
using juzzlin::L;
80
80
81
- L::init ("/tmp/myLog.txt");
81
+ L::initialize ("/tmp/myLog.txt");
82
82
83
83
L().info() << "Something happened";
84
84
```
@@ -88,7 +88,7 @@ L().info() << "Something happened";
88
88
```
89
89
using juzzlin::L;
90
90
91
- L::init ("/tmp/myLog.txt");
91
+ L::initialize ("/tmp/myLog.txt");
92
92
L::enableEchoMode(false);
93
93
94
94
L().info() << "Something happened";
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ class SimpleLogger::Impl
70
70
71
71
static void setStream (Level level, std::ostream & stream);
72
72
73
- static void init (std::string filename, bool append);
73
+ static void initialize (std::string filename, bool append);
74
74
75
75
void flush ();
76
76
@@ -288,7 +288,7 @@ void SimpleLogger::Impl::flush()
288
288
}
289
289
}
290
290
291
- void SimpleLogger::Impl::init (std::string filename, bool append)
291
+ void SimpleLogger::Impl::initialize (std::string filename, bool append)
292
292
{
293
293
if (!filename.empty ()) {
294
294
m_fileStream.open (filename, append ? std::ofstream::out | std::ofstream::app : std::ofstream::out);
@@ -343,9 +343,9 @@ SimpleLogger::SimpleLogger(const std::string & tag)
343
343
{
344
344
}
345
345
346
- void SimpleLogger::init (std::string filename, bool append)
346
+ void SimpleLogger::initialize (std::string filename, bool append)
347
347
{
348
- Impl::init (filename, append);
348
+ Impl::initialize (filename, append);
349
349
}
350
350
351
351
void SimpleLogger::enableEchoMode (bool enable)
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ namespace juzzlin {
35
35
*
36
36
* using juzzlin::L;
37
37
*
38
- * L::init ("myLog.txt");
38
+ * L::initialize ("myLog.txt");
39
39
*
40
40
* Example logging:
41
41
*
@@ -81,7 +81,7 @@ class SimpleLogger
81
81
* \param filename Log to filename. Disabled if empty.
82
82
* \param append The existing log will be appended if true.
83
83
* Throws on error. */
84
- static void init (std::string filename, bool append = false );
84
+ static void initialize (std::string filename, bool append = false );
85
85
86
86
// ! Enable/disable echo mode.
87
87
// ! \param enable Echo everything if true. Default is false.
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ void testAllLoggingLevels_allMessagesShouldBeFoundInFile(const std::string & log
67
67
68
68
void initializeLoggger (const std::string & logFileName, const std::string & timestampSeparator)
69
69
{
70
- L::init (logFileName);
70
+ L::initialize (logFileName);
71
71
L::enableEchoMode (true );
72
72
L::setLoggingLevel (L::Level::Trace);
73
73
L::setTimestampMode (L::TimestampMode::DateTime);
You can’t perform that action at this time.
0 commit comments