mirror of
https://github.com/KjellKod/g3log.git
synced 2024-12-13 10:42:56 +01:00
Merge branch 'master' of github.com:KjellKod/g3log into API_Documentation
Conflicts: test_unit/test_io.cpp
This commit is contained in:
commit
2cef7cb174
11
Build.cmake
11
Build.cmake
@ -23,12 +23,17 @@ SET(ACTIVE_CPP0xx_DIR "Release")
|
||||
IF ("${CMAKE_CXX_COMPILER_ID}" MATCHES ".*Clang")
|
||||
MESSAGE("")
|
||||
MESSAGE("cmake for Clang ")
|
||||
IF (APPLE)
|
||||
SET(CMAKE_CXX_FLAGS "-Wall -std=c++11 -stdlib=libc++ -Wunused -D_GLIBCXX_USE_NANOSLEEP")
|
||||
IF (${CMAKE_SYSTEM} MATCHES "FreeBSD-([0-9]*)\\.(.*)")
|
||||
IF (${CMAKE_MATCH_1} GREATER 9)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
|
||||
set(PLATFORM_LINK_LIBRIES execinfo)
|
||||
ENDIF()
|
||||
ELSEIF (APPLE)
|
||||
set(PLATFORM_LINK_LIBRIES c++abi)
|
||||
ELSE()
|
||||
set(PLATFORM_LINK_LIBRIES rt c++abi)
|
||||
set(PLATFORM_LINK_LIBRIES rt c++abi)
|
||||
ENDIF()
|
||||
SET(CMAKE_CXX_FLAGS "-Wall -std=c++11 -stdlib=libc++ -Wunused -D_GLIBCXX_USE_NANOSLEEP")
|
||||
|
||||
|
||||
|
||||
|
@ -51,7 +51,7 @@ namespace g3 {
|
||||
// The actual log receiving function
|
||||
void FileSink::fileWrite(LogMessageMover message) {
|
||||
std::ofstream &out(filestream());
|
||||
out << message.get().toString();
|
||||
out << message.get().toString() << std::flush;
|
||||
}
|
||||
|
||||
std::string FileSink::changeLogFile(const std::string &directory) {
|
||||
|
Loading…
Reference in New Issue
Block a user