-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update README.md, prepare for 1.1.5 release
- Loading branch information
1 parent
ac5d7f2
commit f4c22b0
Showing
6 changed files
with
63 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
add_executable(SkipNativeEOL Main.cpp) | ||
target_link_libraries(SkipNativeEOL plog) | ||
set_target_properties(SkipNativeEOL PROPERTIES FOLDER Samples) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// SkipNativeEOL - shows how to skip NativeEOLConverter. | ||
// | ||
|
||
#include <plog/Log.h> | ||
#include <plog/Converters/UTF8Converter.h> | ||
|
||
int main() | ||
{ | ||
// NativeEOLConverter will use <CRLF> on Windows and <LF> on everything else as line endings. | ||
// It's used by default. | ||
// If you want to always use <LF> you can skip NativeEOLConverter and specify UTF8Converter directly. | ||
static plog::RollingFileAppender<plog::TxtFormatter, plog::UTF8Converter> fileAppender("SkipNativeEOL.log", 8000, 3); // Create an appender without NativeEOLConverter. | ||
plog::init(plog::debug, &fileAppender); // Initialize the logger. | ||
|
||
// Write some data. | ||
for (int i = 0; i < 100; ++i) | ||
{ | ||
PLOGI << "i: " << i; | ||
} | ||
|
||
return 0; | ||
} |