You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rm...@apache.org on 2022/06/13 23:25:29 UTC

[logging-log4cxx] branch master updated: Adds multiple process support to buffered writer (#112)

This is an automated email from the ASF dual-hosted git repository.

rmiddleton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git


The following commit(s) were added to refs/heads/master by this push:
     new 13b73259 Adds multiple process support to buffered writer (#112)
13b73259 is described below

commit 13b73259075ec292c7abc8ac0378897a4c6eae9d
Author: Richard Prévot <be...@gmail.com>
AuthorDate: Tue Jun 14 01:25:25 2022 +0200

    Adds multiple process support to buffered writer (#112)
---
 src/main/include/log4cxx/helpers/bufferedwriter.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/main/include/log4cxx/helpers/bufferedwriter.h b/src/main/include/log4cxx/helpers/bufferedwriter.h
index 0b38a5da..d1b2b60f 100644
--- a/src/main/include/log4cxx/helpers/bufferedwriter.h
+++ b/src/main/include/log4cxx/helpers/bufferedwriter.h
@@ -57,6 +57,13 @@ class LOG4CXX_EXPORT BufferedWriter : public Writer
 		virtual void flush(Pool& p);
 		virtual void write(const LogString& str, Pool& p);
 
+#ifdef LOG4CXX_MULTI_PROCESS
+		OutputStreamPtr getOutPutStreamPtr()
+		{
+			return out->getOutPutStreamPtr();
+		}
+#endif
+
 	private:
 		BufferedWriter(const BufferedWriter&);
 		BufferedWriter& operator=(const BufferedWriter&);