Skip to content

Commit

Permalink
Enable LOG4CXX_MULTI_PROCESS when LOG4CXX_MULTIPROCESS_ROLLING_FILE_A…
Browse files Browse the repository at this point in the history
…PPENDER is enabled
  • Loading branch information
stephen-webb committed Aug 9, 2023
1 parent f11ab9c commit cfe9590
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ if(LOG4CXX_NETWORKING_SUPPORT)
endif()

if(LOG4CXX_MULTIPROCESS_ROLLING_FILE_APPENDER)
target_compile_definitions(log4cxx PRIVATE LOG4CXX_MULTI_PROCESS)
list(APPEND extra_classes
multiprocessrollingfileappender.cpp
)
Expand Down
2 changes: 1 addition & 1 deletion src/main/cpp/outputstreamwriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void OutputStreamWriter::write(const LogString& str, Pool& p)
// Ensure the logging event is a single write system call to keep events from each process separate
if (bufSize < str.length() * 2)
{
heapData.resize(bufSize = str.length() * 2)
heapData.resize(bufSize = str.length() * 2);
rawbuf = heapData.data();
}
#endif
Expand Down

0 comments on commit cfe9590

Please sign in to comment.