encoding property. If the encoding value is
specified incorrectly the writer will be opened using the default
system encoding (an error message will be printed to the loglog. */
-WriterPtr WriterAppender::createWriter(LOG4CXX_16_CONST OutputStreamPtr& os)
+WriterPtr WriterAppender::createWriter(const OutputStreamPtr& os)
{
LogString enc(getEncoding());
@@ -215,7 +192,7 @@ void WriterAppender::setEncoding(const LogString& enc)
_priv->encoding = enc;
}
-void WriterAppender::subAppend( LOG4CXX_APPEND_FORMAL_PARAMETERS )
+void WriterAppender::subAppend( const spi::LoggingEventPtr& event )
{
#if ENABLE_FAILING_APPENDER_SIMULATION_TESTING
if (event->getRenderedMessage() == _priv->exceptionTriggeringMessage)
@@ -236,17 +213,6 @@ void WriterAppender::subAppend( LOG4CXX_APPEND_FORMAL_PARAMETERS )
}
-#if LOG4CXX_ABI_VERSION <= 15
-void WriterAppender::writeHeader(Pool& p)
-{
- _priv->writeHeader();
-}
-
-void WriterAppender::writeFooter(Pool& p)
-{
- _priv->writeFooter();
-}
-#endif
void WriterAppender::WriterAppenderPriv::writeFooter()
{
@@ -269,17 +235,6 @@ void WriterAppender::WriterAppenderPriv::writeHeader()
}
-#if LOG4CXX_ABI_VERSION <= 15
-void WriterAppender::setWriter(const WriterPtr& newWriter)
-{
- _priv->setWriter(newWriter);
-}
-
-void WriterAppender::setWriterInternal(const WriterPtr& newWriter)
-{
- _priv->writer = newWriter;
-}
-#endif
bool WriterAppender::requiresLayout() const
{
@@ -309,8 +264,3 @@ bool WriterAppender::getImmediateFlush() const
return _priv->immediateFlush;
}
-#if LOG4CXX_ABI_VERSION <= 15
-const LOG4CXX_NS::helpers::WriterPtr WriterAppender::getWriter() const{
- return _priv->writer;
-}
-#endif
diff --git a/src/main/cpp/xmllayout.cpp b/src/main/cpp/xmllayout.cpp
index c50ed7ffe..420bbb0f6 100644
--- a/src/main/cpp/xmllayout.cpp
+++ b/src/main/cpp/xmllayout.cpp
@@ -77,7 +77,7 @@ void XMLLayout::setOption(const LogString& option,
Layout::setOption(option, value);
}
-void XMLLayout::format( LOG4CXX_FORMAT_LAYOUT_FORMAL_PARAMETERS ) const
+void XMLLayout::format( LogString& output, const spi::LoggingEventPtr& event ) const
{
auto& lsMsg = event->getRenderedMessage();
priv::reserveFormattedEvent(output, m_priv->expectedPatternLength, lsMsg.size());
diff --git a/src/main/cpp/xmlsocketappender.cpp b/src/main/cpp/xmlsocketappender.cpp
index 60a2860a2..c5b9dc9dd 100644
--- a/src/main/cpp/xmlsocketappender.cpp
+++ b/src/main/cpp/xmlsocketappender.cpp
@@ -23,22 +23,6 @@
using namespace LOG4CXX_NS;
using namespace LOG4CXX_NS::net;
-#if LOG4CXX_ABI_VERSION <= 15
-struct XMLSocketAppender::XMLSocketAppenderPriv : public SocketAppenderSkeletonPriv
-{
- XMLSocketAppenderPriv(int defaultPort, int reconnectionDelay) :
- SocketAppenderSkeletonPriv(defaultPort, reconnectionDelay) {}
-
- XMLSocketAppenderPriv(helpers::InetAddressPtr address, int defaultPort, int reconnectionDelay) :
- SocketAppenderSkeletonPriv( address, defaultPort, reconnectionDelay ) {}
-
- XMLSocketAppenderPriv(const LogString& host, int port, int delay) :
- SocketAppenderSkeletonPriv( host, port, delay ) {}
-
- LOG4CXX_NS::helpers::WriterPtr unused_writer;
-
-};
-#endif
IMPLEMENT_LOG4CXX_OBJECT(XMLSocketAppender)
@@ -50,9 +34,6 @@ int XMLSocketAppender::DEFAULT_PORT = 4560;
// The default reconnection delay (30000 milliseconds or 30 seconds).
int XMLSocketAppender::DEFAULT_RECONNECTION_DELAY = 30000;
-#if LOG4CXX_ABI_VERSION <= 15
-const int XMLSocketAppender::MAX_EVENT_LEN = 1024;
-#endif
XMLSocketAppender::XMLSocketAppender()
: SocketAppenderSkeleton(std::make_uniquedoAppend method of appender
implementations in order to log.
*/
-#if LOG4CXX_ABI_VERSION <= 15
-#define LOG4CXX_APPEND_FORMAL_PARAMETERS const spi::LoggingEventPtr& event, helpers::Pool& p
-#define LOG4CXX_APPEND_PARAMETERS event, p
- void doAppend(const spi::LoggingEventPtr& event);
- /**
- @deprecated The \c pool parameter is not used and will be removed in a future version.
- Implement this method for now, but plan to migrate to doAppend() without a helpers::Pool parameter.
- */
- virtual void doAppend(const spi::LoggingEventPtr& event,
- LOG4CXX_NS::helpers::Pool& pool) = 0;
-#else
-#define LOG4CXX_APPEND_FORMAL_PARAMETERS const spi::LoggingEventPtr& event
-#define LOG4CXX_APPEND_PARAMETERS event
virtual void doAppend(const spi::LoggingEventPtr& event) = 0;
/**
@deprecated The \c pool parameter is not used and will be removed in a future version.
*/
[[deprecated("Use doAppend() without a Pool parameter instead")]]
void doAppend(const spi::LoggingEventPtr& event, helpers::Pool& pool);
-#endif
/**
Get the name of this appender. The name uniquely identifies the
diff --git a/src/main/include/log4cxx/appenderskeleton.h b/src/main/include/log4cxx/appenderskeleton.h
index 679b91428..f5f8f076b 100644
--- a/src/main/include/log4cxx/appenderskeleton.h
+++ b/src/main/include/log4cxx/appenderskeleton.h
@@ -36,12 +36,7 @@ namespace LOG4CXX_NS
* support for threshold filtering and support for general filters.
* */
class LOG4CXX_EXPORT AppenderSkeleton
-#if LOG4CXX_ABI_VERSION <= 15
- : public virtual Appender
- , public virtual helpers::Object
-#else
: public Appender
-#endif
{
protected:
LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(AppenderSkeletonPrivate, m_priv)
@@ -52,14 +47,14 @@ class LOG4CXX_EXPORT AppenderSkeleton
method to perform actual logging. See also AppenderSkeleton::doAppend
method.
*/
- virtual void append( LOG4CXX_APPEND_FORMAL_PARAMETERS ) = 0;
+ virtual void append( const spi::LoggingEventPtr& event ) = 0;
/**
* Compare \c event level against the appender threshold and check that \c event is accepted.
* If \c event is accepted, delegate log output to the subclass implementation of
* the AppenderSkeleton#append method.
* */
- void doAppendImpl( LOG4CXX_APPEND_FORMAL_PARAMETERS );
+ void doAppendImpl( const spi::LoggingEventPtr& event );
/**
* Does no attached filter deny \c event or does an attached filter accept \c event?
*/
@@ -77,14 +72,6 @@ class LOG4CXX_EXPORT AppenderSkeleton
AppenderSkeleton(const LayoutPtr& layout);
virtual ~AppenderSkeleton();
-#if LOG4CXX_ABI_VERSION <= 15
- /**
- Finalize this appender by calling the derived class'
- close method.
- */
- [[ deprecated( "The derived appender destructor needs to implement its cleanup" ) ]]
- void finalize();
-#endif
using spi::OptionHandler::activateOptions;
/**
@@ -94,7 +81,7 @@ class LOG4CXX_EXPORT AppenderSkeleton
@deprecated The \c pool parameter is not required and will be removed in a future version.
*/
- void activateOptions( LOG4CXX_ACTIVATE_OPTIONS_FORMAL_PARAMETERS ) override;
+ void activateOptions( ) override;
/**
\copybrief spi::OptionHandler::setOption()
@@ -166,7 +153,7 @@ class LOG4CXX_EXPORT AppenderSkeleton
*
* Reimplement this method in your appender if you use a different concurrency control technique.
* */
- void doAppend( LOG4CXX_APPEND_FORMAL_PARAMETERS ) override;
+ void doAppend( const spi::LoggingEventPtr& event ) override;
/**
Set the {@link spi::ErrorHandler ErrorHandler} for this Appender.
diff --git a/src/main/include/log4cxx/asyncappender.h b/src/main/include/log4cxx/asyncappender.h
index 20c01d797..7591e9f10 100644
--- a/src/main/include/log4cxx/asyncappender.h
+++ b/src/main/include/log4cxx/asyncappender.h
@@ -89,11 +89,7 @@ See AsyncAppender::setOption for details.
*/
class LOG4CXX_EXPORT AsyncAppender :
public virtual spi::AppenderAttachable,
-#if LOG4CXX_ABI_VERSION <= 15
- public virtual AppenderSkeleton
-#else
public AppenderSkeleton
-#endif
{
protected:
struct AsyncAppenderPriv;
@@ -127,14 +123,14 @@ class LOG4CXX_EXPORT AsyncAppender :
/**
* Call AppenderSkeleton#doAppendImpl without acquiring a lock.
*/
- void doAppend( LOG4CXX_APPEND_FORMAL_PARAMETERS ) override;
+ void doAppend( const spi::LoggingEventPtr& event ) override;
/**
* Add \c event to a ring buffer.
* The behaviour when the ring buffer is full
* is controlled by the [Blocking property](@ref BlockingProperty) value.
*/
- void append( LOG4CXX_APPEND_FORMAL_PARAMETERS ) override;
+ void append( const spi::LoggingEventPtr& event ) override;
/**
Close this AsyncAppender by interrupting the
@@ -157,12 +153,6 @@ class LOG4CXX_EXPORT AsyncAppender :
*/
AppenderPtr getAppender(const LogString& name) const override;
-#if LOG4CXX_ABI_VERSION <= 15
- /**
- * The current value of the (unused) LocationInfo option.
- */
- bool getLocationInfo() const;
-#endif
/**
* Determines if specified appender is attached.
* @param appender appender.
@@ -194,21 +184,13 @@ class LOG4CXX_EXPORT AsyncAppender :
* Replace \c oldAppender with \c newAppender.
* @return true if oldAppender was replaced with newAppender.
*/
- bool replaceAppender(const AppenderPtr& oldAppender, const AppenderPtr& newAppender) LOG4CXX_16_VIRTUAL_SPECIFIER;
+ bool replaceAppender(const AppenderPtr& oldAppender, const AppenderPtr& newAppender) override;
/**
* Replace any previously added appenders with \c newList.
*/
- void replaceAppenders(const AppenderList& newList) LOG4CXX_16_VIRTUAL_SPECIFIER;
+ void replaceAppenders(const AppenderList& newList) override;
-#if LOG4CXX_ABI_VERSION <= 15
- /**
- * The LocationInfo attribute is provided for compatibility
- * with log4j and has no effect on the log output.
- * @param flag new value.
- */
- void setLocationInfo(bool flag);
-#endif
/**
* Use \c newSize (a non-negative integer value) for
* the number of [logging events](@ref spi::LoggingEvent) the ring buffer can hold.
diff --git a/src/main/include/log4cxx/config/propertysetter.h b/src/main/include/log4cxx/config/propertysetter.h
index 28926a6b6..70726a56b 100644
--- a/src/main/include/log4cxx/config/propertysetter.h
+++ b/src/main/include/log4cxx/config/propertysetter.h
@@ -102,28 +102,6 @@ class LOG4CXX_EXPORT PropertySetter
void activate();
-#if LOG4CXX_ABI_VERSION <= 15
- /**
- @deprecated The \c pool parameter is not used and will be removed in a future version.
- */
- [[deprecated("Use setProperties() without a Pool parameter instead")]]
- static void setProperties(const helpers::ObjectPtr& obj, helpers::Properties& properties, const LogString& prefix, helpers::Pool& p);
- /**
- @deprecated The \c pool parameter is not used and will be removed in a future version.
- */
- [[deprecated("Use setProperties() without a Pool parameter instead")]]
- void setProperties(helpers::Properties& properties, const LogString& prefix, helpers::Pool& p);
- /**
- @deprecated The \c pool parameter is not used and will be removed in a future version.
- */
- [[deprecated("Use setProperty() without a Pool parameter instead")]]
- void setProperty(const LogString& option, const LogString& value, helpers::Pool& p);
- /**
- @deprecated The \c pool parameter is not used and will be removed in a future version.
- */
- [[deprecated("Use activate() without a Pool parameter instead")]]
- void activate(helpers::Pool& p);
-#endif
}; // class PropertySetter
} // namespace config;
} // namespace log4cxx
diff --git a/src/main/include/log4cxx/consoleappender.h b/src/main/include/log4cxx/consoleappender.h
index c1a98610c..7c2e98ce2 100644
--- a/src/main/include/log4cxx/consoleappender.h
+++ b/src/main/include/log4cxx/consoleappender.h
@@ -88,7 +88,7 @@ class LOG4CXX_EXPORT ConsoleAppender : public WriterAppender
No action is performed in this implementation.
*/
- void activateOptions( LOG4CXX_ACTIVATE_OPTIONS_FORMAL_PARAMETERS ) override;
+ void activateOptions( ) override;
/**
\copybrief WriterAppender::setOption()
diff --git a/src/main/include/log4cxx/db/dbappender.h b/src/main/include/log4cxx/db/dbappender.h
index a56d32b89..62e8ae540 100644
--- a/src/main/include/log4cxx/db/dbappender.h
+++ b/src/main/include/log4cxx/db/dbappender.h
@@ -141,12 +141,12 @@ class LOG4CXX_EXPORT DBAppender : public AppenderSkeleton
/**
Activate the specified options.
*/
- void activateOptions( LOG4CXX_ACTIVATE_OPTIONS_FORMAL_PARAMETERS ) override;
+ void activateOptions( ) override;
/**
* Adds the event to the buffer. When full the buffer is flushed.
*/
- void append( LOG4CXX_APPEND_FORMAL_PARAMETERS ) override;
+ void append( const spi::LoggingEventPtr& event ) override;
void close() override;
diff --git a/src/main/include/log4cxx/db/odbcappender.h b/src/main/include/log4cxx/db/odbcappender.h
index bbcfb8c76..fcbd09eb4 100644
--- a/src/main/include/log4cxx/db/odbcappender.h
+++ b/src/main/include/log4cxx/db/odbcappender.h
@@ -179,28 +179,14 @@ class LOG4CXX_EXPORT ODBCAppender : public AppenderSkeleton
/**
Activate the specified options.
*/
- void activateOptions( LOG4CXX_ACTIVATE_OPTIONS_FORMAL_PARAMETERS ) override;
+ void activateOptions( ) override;
/**
* Adds the event to the buffer. When full the buffer is flushed.
*/
- void append( LOG4CXX_APPEND_FORMAL_PARAMETERS ) override;
+ void append( const spi::LoggingEventPtr& event ) override;
protected:
-#if LOG4CXX_ABI_VERSION <= 15
- /**
- * To be removed.
- */
- LogString getLogStatement(const spi::LoggingEventPtr& event,
- helpers::Pool& p) const;
-
- /**
- *
- * To be removed.
- * */
- virtual void execute(const LogString& sql,
- LOG4CXX_NS::helpers::Pool& p) /*throw(SQLException)*/;
-#endif
/**
* Override this to return the connection to a pool, or to clean up the
* resource.
diff --git a/src/main/include/log4cxx/defaultloggerfactory.h b/src/main/include/log4cxx/defaultloggerfactory.h
deleted file mode 100644
index 67f960550..000000000
--- a/src/main/include/log4cxx/defaultloggerfactory.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _LOG4CXX_DEFAULT_LOGGER_FACTORY_H
-#define _LOG4CXX_DEFAULT_LOGGER_FACTORY_H
-
-#include doAppend method on all attached appenders.
- @deprecated This function is deprecated and will be removed in a future version.
- */
- [[ deprecated( "Pool is no longer required" ) ]]
- int appendLoopOnAppenders(const spi::LoggingEventPtr& event,
- LOG4CXX_NS::helpers::Pool& p);
-#endif
/**
Send \c event to all attached appenders.
*/
@@ -113,12 +100,12 @@ class LOG4CXX_EXPORT AppenderAttachableImpl :
* Replace \c oldAppender with \c newAppender.
* @return true if oldAppender was replaced with newAppender.
*/
- bool replaceAppender(const AppenderPtr& oldAppender, const AppenderPtr& newAppender) LOG4CXX_16_VIRTUAL_SPECIFIER;
+ bool replaceAppender(const AppenderPtr& oldAppender, const AppenderPtr& newAppender) override;
/**
* Replace any previously added appenders with \c newList.
*/
- void replaceAppenders(const AppenderList& newList) LOG4CXX_16_VIRTUAL_SPECIFIER;
+ void replaceAppenders(const AppenderList& newList) override;
private:
LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(priv_data, m_priv)
diff --git a/src/main/include/log4cxx/helpers/aprinitializer.h b/src/main/include/log4cxx/helpers/aprinitializer.h
index 18e9c7e03..9acd90d18 100644
--- a/src/main/include/log4cxx/helpers/aprinitializer.h
+++ b/src/main/include/log4cxx/helpers/aprinitializer.h
@@ -35,31 +35,14 @@ namespace LOG4CXX_NS
{
namespace helpers
{
-#if LOG4CXX_ABI_VERSION <= 15
-class FileWatchdog;
-#endif
class APRInitializer
{
public:
-#if LOG4CXX_ABI_VERSION <= 15
- static log4cxx_time_t initialize();
- static bool isDestructed;
-#endif
static apr_pool_t* getRootPool();
static log4cxx_time_t getStartTime();
static apr_threadkey_t* getTlsKey();
-#if LOG4CXX_ABI_VERSION <= 15
- /**
- * Register a FileWatchdog for deletion prior to termination.
- * FileWatchdog must be
- * allocated on heap and not deleted elsewhere.
- */
- static void registerCleanup(FileWatchdog* watchdog);
- static void unregisterCleanup(FileWatchdog* watchdog);
- static void unregisterAll();
-#endif
/**
* Store a single instance type ObjectPtr for deletion prior to termination
*/
diff --git a/src/main/include/log4cxx/helpers/asyncbuffer.h b/src/main/include/log4cxx/helpers/asyncbuffer.h
index 49e3d290a..3583f408f 100644
--- a/src/main/include/log4cxx/helpers/asyncbuffer.h
+++ b/src/main/include/log4cxx/helpers/asyncbuffer.h
@@ -258,15 +258,6 @@ class LOG4CXX_EXPORT AsyncBuffer
#endif // LOG4CXX_WCHAR_T_API || LOG4CXX_LOGCHAR_IS_WCHAR
#endif // LOG4CXX_ASYNC_BUFFER_SUPPORTS_FMT
-#if LOG4CXX_ABI_VERSION <= 15
-#if LOG4CXX_ASYNC_BUFFER_SUPPORTS_FMT
- void initializeForFmt(StringViewType&& format_string, FmtArgStore&& args);
-
-#if LOG4CXX_WCHAR_T_API || LOG4CXX_LOGCHAR_IS_WCHAR
- void initializeForFmt(WideStringViewType&& format_string, WideFmtArgStore&& args);
-#endif // LOG4CXX_WCHAR_T_API || LOG4CXX_LOGCHAR_IS_WCHAR
-#endif // LOG4CXX_ASYNC_BUFFER_SUPPORTS_FMT
-#endif // LOG4CXX_ABI_VERSION <= 15
};
} // namespace helpers
diff --git a/src/main/include/log4cxx/helpers/bufferedwriter.h b/src/main/include/log4cxx/helpers/bufferedwriter.h
index fa3be51ec..5e787515a 100644
--- a/src/main/include/log4cxx/helpers/bufferedwriter.h
+++ b/src/main/include/log4cxx/helpers/bufferedwriter.h
@@ -47,11 +47,11 @@ class LOG4CXX_EXPORT BufferedWriter : public Writer
virtual ~BufferedWriter();
using Writer::close;
- void close( LOG4CXX_CLOSE_WRITER_FORMAL_PARAMETERS ) override;
+ void close( ) override;
using Writer::flush;
- void flush( LOG4CXX_FLUSH_WRITER_FORMAL_PARAMETERS ) override;
+ void flush( ) override;
using Writer::write;
- void write( LOG4CXX_WRITE_WRITER_FORMAL_PARAMETERS ) override;
+ void write( const LogString& str ) override;
WriterPtr getWriter() const;
private:
diff --git a/src/main/include/log4cxx/helpers/bytearrayoutputstream.h b/src/main/include/log4cxx/helpers/bytearrayoutputstream.h
index 6f81b172d..528ffdfc6 100644
--- a/src/main/include/log4cxx/helpers/bytearrayoutputstream.h
+++ b/src/main/include/log4cxx/helpers/bytearrayoutputstream.h
@@ -49,11 +49,11 @@ class LOG4CXX_EXPORT ByteArrayOutputStream : public OutputStream
virtual ~ByteArrayOutputStream();
using OutputStream::close;
- void close( LOG4CXX_CLOSE_OUTPUT_STREAM_FORMAL_PARAMETERS ) override;
+ void close( ) override;
using OutputStream::flush;
- void flush( LOG4CXX_FLUSH_OUTPUT_STREAM_FORMAL_PARAMETERS ) override;
+ void flush( ) override;
using OutputStream::write;
- void write( LOG4CXX_WRITE_OUTPUT_STREAM_FORMAL_PARAMETERS ) override;
+ void write( ByteBuffer& buf ) override;
ByteList toByteArray() const;
private:
diff --git a/src/main/include/log4cxx/helpers/bytebuffer.h b/src/main/include/log4cxx/helpers/bytebuffer.h
index 670c47c2f..0d805985f 100644
--- a/src/main/include/log4cxx/helpers/bytebuffer.h
+++ b/src/main/include/log4cxx/helpers/bytebuffer.h
@@ -75,15 +75,6 @@ class LOG4CXX_EXPORT ByteBuffer
/// Intially this is the capacity of the buffer.
size_t limit() const;
-#if LOG4CXX_ABI_VERSION <= 15
- /// Use \c newLimit as the extent to which the cursor can advance.
- /// If \c newLimit exceeds the memory capacity, an exception is thrown.
- /// If the current cursor is currently beyond \c newLimit
- /// the cursor is changed to be at \c newLimit.
- /// @deprecated This function is deprecated and will be removed in a future version.
- [[ deprecated( "Use flip instead" ) ]]
- void limit(size_t newLimit);
-#endif
/// The offset of the current cursor from the start of the memory area.
size_t position() const;
@@ -92,14 +83,6 @@ class LOG4CXX_EXPORT ByteBuffer
/// until the cursor can no longer advance.
size_t remaining() const;
-#if LOG4CXX_ABI_VERSION <= 15
- /// Use \c newPosition as the cursor position
- /// providing it is less than the extent to which the cursor can advance,
- /// otherwise set the cursor to the extent to which the cursor can advance.
- /// @deprecated This function is deprecated and will be removed in a future version.
- [[ deprecated( "Use increment_position instead" ) ]]
- void position(size_t newPosition);
-#endif
/// Advance the cursor by \c byteCount
/// if that does not exceed the extent to which the cursor can advance,
/// otherwise set the cursor to the extent to which the cursor can advance.
diff --git a/src/main/include/log4cxx/helpers/cacheddateformat.h b/src/main/include/log4cxx/helpers/cacheddateformat.h
index 9a71665e9..528cd0388 100644
--- a/src/main/include/log4cxx/helpers/cacheddateformat.h
+++ b/src/main/include/log4cxx/helpers/cacheddateformat.h
@@ -108,13 +108,6 @@ class LOG4CXX_EXPORT CachedDateFormat : public helpers::DateFormat
static int findMillisecondStart(
log4cxx_time_t time, const LogString& formatted,
const helpers::DateFormatPtr& formatter);
-#if LOG4CXX_ABI_VERSION <= 15
- [[deprecated("Use findMillisecondStart() without a Pool parameter instead")]]
- static int findMillisecondStart(
- log4cxx_time_t time, const LogString& formatted,
- const LOG4CXX_NS::helpers::DateFormatPtr& formatter,
- LOG4CXX_NS::helpers::Pool& pool);
-#endif
using DateFormat::format;
/**
* Formats a Date into a date/time string.
@@ -122,7 +115,7 @@ class LOG4CXX_EXPORT CachedDateFormat : public helpers::DateFormat
* @param tm the date/time to format.
* @param toAppendTo the string buffer to write to.
*/
- void format( LOG4CXX_FORMAT_TIME_FORMAL_PARAMETERS ) const override;
+ void format( LogString& toAppendTo, log4cxx_time_t tm ) const override;
private:
/**
@@ -152,7 +145,7 @@ class LOG4CXX_EXPORT CachedDateFormat : public helpers::DateFormat
* @param toAppendTo string to which the numeric string is appended.
* @param n integer value.
*/
- void numberFormat( LOG4CXX_FORMAT_NUMBER_FORMAL_PARAMETERS ) const override;
+ void numberFormat( LogString& toAppendTo, int n ) const override;
/**
* Gets maximum cache validity for the specified SimpleDateTime
diff --git a/src/main/include/log4cxx/helpers/charsetencoder.h b/src/main/include/log4cxx/helpers/charsetencoder.h
index 4e971cb23..8d6733888 100644
--- a/src/main/include/log4cxx/helpers/charsetencoder.h
+++ b/src/main/include/log4cxx/helpers/charsetencoder.h
@@ -97,24 +97,16 @@ class LOG4CXX_EXPORT CharsetEncoder : public Object
LogString::const_iterator& iter,
ByteBuffer& out) = 0;
-#if 15 < LOG4CXX_ABI_VERSION
/**
* Add onto \c out an encoded equivalent of \c codePoint.
* @return APR_SUCCESS unless \c codePoint cannot be represented by this charset or \c out is full.
*/
virtual log4cxx_status_t encode(unsigned int codePoint, ByteBuffer& out) = 0;
-#endif
/**
* Resets any internal state.
*/
virtual void reset();
-#if LOG4CXX_ABI_VERSION <= 15
- /**
- * Flushes the encoder.
- */
- virtual void flush(ByteBuffer& out);
-#endif
/**
* Determines if the return value from encode indicates
diff --git a/src/main/include/log4cxx/helpers/class.h b/src/main/include/log4cxx/helpers/class.h
index d631745f5..028b2f13e 100644
--- a/src/main/include/log4cxx/helpers/class.h
+++ b/src/main/include/log4cxx/helpers/class.h
@@ -33,10 +33,6 @@ class LOG4CXX_EXPORT Class
public:
virtual ~Class();
virtual Object* newInstance() const;
-#if LOG4CXX_ABI_VERSION <= 15
- [[ deprecated( "Use getName() instead" ) ]]
- LogString toString() const;
-#endif
virtual LogString getName() const = 0;
static const Class& forName(const LogString& className);
static bool registerClass(const Class& newClass);
diff --git a/src/main/include/log4cxx/helpers/datagrampacket.h b/src/main/include/log4cxx/helpers/datagrampacket.h
index ee1519411..e5d41c9ad 100644
--- a/src/main/include/log4cxx/helpers/datagrampacket.h
+++ b/src/main/include/log4cxx/helpers/datagrampacket.h
@@ -45,26 +45,6 @@ class LOG4CXX_EXPORT DatagramPacket : public helpers::Object
LOG4CXX_CAST_ENTRY(DatagramPacket)
END_LOG4CXX_CAST_MAP()
-#if LOG4CXX_ABI_VERSION <= 15
- /** Constructs a DatagramPacket for receiving packets of length
- length. */
- DatagramPacket(void* buf, int length);
-
- /** Constructs a datagram packet for sending packets of length
- length to the specified port number on the specified
- host. */
- DatagramPacket(void* buf, int length, InetAddressPtr address, int port);
-
- /** Constructs a DatagramPacket for receiving packets of length
- length, specifying an offset into the buffer. */
- DatagramPacket(void* buf, int offset, int length);
-
- /** Constructs a datagram packet for sending packets of length
- length with offset offset to the
- specified port number on the specified host. */
- DatagramPacket(void* buf, int offset, int length, InetAddressPtr address,
- int port);
-#else
/** Constructs a DatagramPacket for receiving packets of length
length. */
DatagramPacket(void* buf, std::size_t length);
@@ -83,7 +63,6 @@ class LOG4CXX_EXPORT DatagramPacket : public helpers::Object
specified port number on the specified host. */
DatagramPacket(void* buf, std::size_t offset, std::size_t length, InetAddressPtr address,
int port);
-#endif
~DatagramPacket();
@@ -94,15 +73,6 @@ class LOG4CXX_EXPORT DatagramPacket : public helpers::Object
/** Returns the data received or the data to be sent. */
void* getData() const;
-#if LOG4CXX_ABI_VERSION <= 15
- /** Returns the length of the data to be sent or the length of the
- data received. */
- int getLength() const;
-
- /** Returns the offset of the data to be sent or the offset of the
- data received. */
- int getOffset() const;
-#else
/** Returns the length of the data to be sent or the length of the
data received. */
std::size_t getLength() const;
@@ -110,7 +80,6 @@ class LOG4CXX_EXPORT DatagramPacket : public helpers::Object
/** Returns the offset of the data to be sent or the offset of the
data received. */
std::size_t getOffset() const;
-#endif
/** Returns the port number on the remote host to which this
datagram is being sent or from which the datagram was received. */
@@ -121,19 +90,11 @@ class LOG4CXX_EXPORT DatagramPacket : public helpers::Object
/** Set the data buffer for this packet. */
void setData(void* buf1);
-#if LOG4CXX_ABI_VERSION <= 15
- /** Set the data buffer for this packet. */
- void setData(void* buf1, int offset1, int length1);
-
- /** Set the length for this packet. */
- void setLength(int length1);
-#else
/** Set the data buffer for this packet. */
void setData(void* buf1, std::size_t offset1, std::size_t length1);
/** Set the length for this packet. */
void setLength(std::size_t length1);
-#endif
void setPort(int port1);
diff --git a/src/main/include/log4cxx/helpers/dateformat.h b/src/main/include/log4cxx/helpers/dateformat.h
index a2f8e9d31..919eba172 100644
--- a/src/main/include/log4cxx/helpers/dateformat.h
+++ b/src/main/include/log4cxx/helpers/dateformat.h
@@ -48,23 +48,12 @@ class LOG4CXX_EXPORT DateFormat : public Object
* @param toAppendTo string to which the date/time string is appended.
* @param tm date to be formatted.
*/
-#if LOG4CXX_ABI_VERSION <= 15
-#define LOG4CXX_FORMAT_TIME_FORMAL_PARAMETERS LogString& toAppendTo, log4cxx_time_t tm, helpers::Pool& p
- void format(LogString& toAppendTo, log4cxx_time_t tm) const;
- /**
- @deprecated The \c pool parameter is not used and will be removed in a future version.
- Implement this method for now, but plan to migrate to format() without a helpers::Pool parameter.
- */
- virtual void format(LogString& toAppendTo, log4cxx_time_t tm, LOG4CXX_NS::helpers::Pool& p) const = 0;
-#else
-#define LOG4CXX_FORMAT_TIME_FORMAL_PARAMETERS LogString& toAppendTo, log4cxx_time_t tm
virtual void format(LogString& toAppendTo, log4cxx_time_t tm) const = 0;
/**
@deprecated The \c pool parameter is not used and will be removed in a future version.
*/
[[deprecated("Use format() without a Pool parameter instead")]]
void format(LogString& toAppendTo, log4cxx_time_t tm, helpers::Pool& p) const;
-#endif
/**
* Sets the time zone.
@@ -80,23 +69,12 @@ class LOG4CXX_EXPORT DateFormat : public Object
* @remarks This method is used by CachedDateFormat to
* format the milliseconds.
*/
-#if LOG4CXX_ABI_VERSION <= 15
- void numberFormat(LogString& toAppendTo, int n) const;
- /**
- @deprecated The \c pool parameter is not used and will be removed in a future version.
- */
- [[deprecated("Use numberFormat() without a Pool parameter instead")]]
- virtual void numberFormat(LogString& toAppendTo, int n, LOG4CXX_NS::helpers::Pool& p) const;
-#define LOG4CXX_FORMAT_NUMBER_FORMAL_PARAMETERS LogString& toAppendTo, int n, helpers::Pool& p
-#else
virtual void numberFormat(LogString& toAppendTo, int n) const;
-#define LOG4CXX_FORMAT_NUMBER_FORMAL_PARAMETERS LogString& toAppendTo, int n
/**
@deprecated The \c pool parameter is not used and will be removed in a future version.
*/
[[deprecated("Use numberFormat() without a Pool parameter instead")]]
void numberFormat(LogString& toAppendTo, int n, helpers::Pool& p) const;
-#endif
protected:
/**
diff --git a/src/main/include/log4cxx/helpers/fileoutputstream.h b/src/main/include/log4cxx/helpers/fileoutputstream.h
index d37265c74..67308cef8 100644
--- a/src/main/include/log4cxx/helpers/fileoutputstream.h
+++ b/src/main/include/log4cxx/helpers/fileoutputstream.h
@@ -48,11 +48,11 @@ class LOG4CXX_EXPORT FileOutputStream : public OutputStream
virtual ~FileOutputStream();
using OutputStream::close;
- void close( LOG4CXX_CLOSE_OUTPUT_STREAM_FORMAL_PARAMETERS ) override;
+ void close( ) override;
using OutputStream::flush;
- void flush( LOG4CXX_FLUSH_OUTPUT_STREAM_FORMAL_PARAMETERS ) override;
+ void flush( ) override;
using OutputStream::write;
- void write( LOG4CXX_WRITE_OUTPUT_STREAM_FORMAL_PARAMETERS ) override;
+ void write( ByteBuffer& buf ) override;
apr_file_t* getFilePtr() const;
diff --git a/src/main/include/log4cxx/helpers/inputstreamreader.h b/src/main/include/log4cxx/helpers/inputstreamreader.h
index 28549a012..e911e4d34 100644
--- a/src/main/include/log4cxx/helpers/inputstreamreader.h
+++ b/src/main/include/log4cxx/helpers/inputstreamreader.h
@@ -70,13 +70,13 @@ class LOG4CXX_EXPORT InputStreamReader : public Reader
/**
* Close the stream.
*/
- void close( LOG4CXX_CLOSE_READER_FORMAL_PARAMETERS ) override;
+ void close( ) override;
using Reader::read;
/**
* @return The complete stream contents as a LogString.
*/
- LogString read( LOG4CXX_READ_READER_FORMAL_PARAMETERS ) override;
+ LogString read( ) override;
/**
* @return The name of the character encoding being used by this stream.
diff --git a/src/main/include/log4cxx/helpers/onlyonceerrorhandler.h b/src/main/include/log4cxx/helpers/onlyonceerrorhandler.h
index 2a5c7aeff..962badd2a 100644
--- a/src/main/include/log4cxx/helpers/onlyonceerrorhandler.h
+++ b/src/main/include/log4cxx/helpers/onlyonceerrorhandler.h
@@ -36,12 +36,7 @@ first error in an appender and ignoring all following errors.
from being flooded with error messages when logging fails
*/
class LOG4CXX_EXPORT OnlyOnceErrorHandler
-#if LOG4CXX_ABI_VERSION <= 15
- : public virtual spi::ErrorHandler
- , public virtual helpers::Object
-#else
: public spi::ErrorHandler
-#endif
{
private:
LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(OnlyOnceErrorHandlerPrivate, m_priv)
@@ -49,13 +44,8 @@ class LOG4CXX_EXPORT OnlyOnceErrorHandler
public:
DECLARE_LOG4CXX_OBJECT(OnlyOnceErrorHandler)
BEGIN_LOG4CXX_CAST_MAP()
-#if 15 < LOG4CXX_ABI_VERSION
LOG4CXX_CAST_ENTRY(OnlyOnceErrorHandler)
LOG4CXX_CAST_ENTRY_CHAIN(spi::ErrorHandler)
-#else
- LOG4CXX_CAST_ENTRY(spi::OptionHandler)
- LOG4CXX_CAST_ENTRY(spi::ErrorHandler)
-#endif
END_LOG4CXX_CAST_MAP()
OnlyOnceErrorHandler();
@@ -68,14 +58,6 @@ class LOG4CXX_EXPORT OnlyOnceErrorHandler
void setLogger(const LoggerPtr& logger) override;
-#if LOG4CXX_ABI_VERSION <= 15
- /**
- \copybrief spi::OptionHandler::activateOptions()
-
- No action is performed in this implementation.
- */
- void activateOptions(helpers::Pool& p) override;
-#endif
/**
\copybrief spi::OptionHandler::setOption()
@@ -117,11 +99,7 @@ class LOG4CXX_EXPORT OnlyOnceErrorHandler
/**
Has an error been reported?
*/
-#if 15 < LOG4CXX_ABI_VERSION
bool errorReported() const override;
-#else
- bool errorReported() const;
-#endif
};
} // namespace helpers
} // namespace log4cxx
diff --git a/src/main/include/log4cxx/helpers/outputstream.h b/src/main/include/log4cxx/helpers/outputstream.h
index d7675e6c1..4b661d481 100644
--- a/src/main/include/log4cxx/helpers/outputstream.h
+++ b/src/main/include/log4cxx/helpers/outputstream.h
@@ -43,35 +43,9 @@ class LOG4CXX_EXPORT OutputStream : public Object
virtual ~OutputStream();
public:
-#if LOG4CXX_ABI_VERSION <= 15
- void close();
- void flush();
- void write(ByteBuffer& buf);
- /**
- @deprecated The \c pool parameter is not used and will be removed in a future version.
- Implement this method for now, but plan to migrate to close() without a helpers::Pool parameter.
- */
- virtual void close(Pool& p) = 0;
-#define LOG4CXX_CLOSE_OUTPUT_STREAM_FORMAL_PARAMETERS helpers::Pool& p
- /**
- @deprecated The \c pool parameter is not used and will be removed in a future version.
- Implement this method for now, but plan to migrate to flush() without a helpers::Pool parameter.
- */
- virtual void flush(Pool& p) = 0;
-#define LOG4CXX_FLUSH_OUTPUT_STREAM_FORMAL_PARAMETERS helpers::Pool& p
- /**
- @deprecated The \c pool parameter is not used and will be removed in a future version.
- Implement this method for now, but plan to migrate to write() without a helpers::Pool parameter.
- */
- virtual void write(ByteBuffer& buf, Pool& p) = 0;
-#define LOG4CXX_WRITE_OUTPUT_STREAM_FORMAL_PARAMETERS ByteBuffer& buf, helpers::Pool& p
-#else
virtual void close() = 0;
-#define LOG4CXX_CLOSE_OUTPUT_STREAM_FORMAL_PARAMETERS
virtual void flush() = 0;
-#define LOG4CXX_FLUSH_OUTPUT_STREAM_FORMAL_PARAMETERS
virtual void write(ByteBuffer& buf) = 0;
-#define LOG4CXX_WRITE_OUTPUT_STREAM_FORMAL_PARAMETERS ByteBuffer& buf
/**
@deprecated The \c pool parameter is not used and will be removed in a future version.
*/
@@ -87,7 +61,6 @@ class LOG4CXX_EXPORT OutputStream : public Object
*/
[[deprecated("Use write() without a Pool parameter instead")]]
void write(ByteBuffer& buf, Pool& p);
-#endif
private:
OutputStream(const OutputStream&);
diff --git a/src/main/include/log4cxx/helpers/outputstreamwriter.h b/src/main/include/log4cxx/helpers/outputstreamwriter.h
index 623bacce8..13d85a6a0 100644
--- a/src/main/include/log4cxx/helpers/outputstreamwriter.h
+++ b/src/main/include/log4cxx/helpers/outputstreamwriter.h
@@ -22,11 +22,6 @@
#include It is intended to be only used by factory-classes.
*/
Logger(const LogString& name);
-#if LOG4CXX_ABI_VERSION <= 15
- /// @deprecated This function is deprecated and will be removed in a future version.
- [[ deprecated( "Pool is no longer required" ) ]]
- Logger(helpers::Pool& pool, const LogString& name);
-#endif
~Logger();
@@ -87,23 +82,6 @@ class LOG4CXX_EXPORT Logger
void addAppender(const AppenderPtr newAppender) override;
-#if LOG4CXX_ABI_VERSION <= 15
- /**
- Call the appenders in the hierrachy starting at
- this. If no appenders could be found, emit a
- warning.
-
-
This method calls all the appenders inherited from the
- hierarchy circumventing any evaluation of whether to log or not
- to log the particular log request.
-
- @param event the event to log.
- @param p memory pool for any allocations needed to process request.
- @deprecated This function is deprecated and will be removed in a future version.
- */
- [[ deprecated( "Pool is no longer required" ) ]]
- void callAppenders(const spi::LoggingEventPtr& event, helpers::Pool& p) const;
-#endif
/**
Send \c event to all appenders attached to this or attached to a parent of this.
If no appenders are found, emit a warning.
@@ -854,13 +832,6 @@ class LOG4CXX_EXPORT Logger
*/
virtual const LevelPtr& getEffectiveLevel() const;
-#if LOG4CXX_ABI_VERSION <= 15
- /**
- Return the the LoggerRepository where this
- Logger is attached.
- */
- spi::LoggerRepository* getLoggerRepository() const;
-#endif
/**
* Get the logger name.
@@ -911,12 +882,10 @@ class LOG4CXX_EXPORT Logger
*/
const LevelPtr& getLevel() const;
-#if 15 < LOG4CXX_ABI_VERSION
/**
The object that holds all Logger instances.
*/
static spi::LoggerRepositoryPtr getLoggerRepository();
-#endif
/**
* Retrieve a logger by name in current encoding.
@@ -1873,12 +1842,12 @@ class LOG4CXX_EXPORT Logger
* Replace \c oldAppender with \c newAppender.
* @return true if oldAppender was replaced with newAppender.
*/
- bool replaceAppender(const AppenderPtr& oldAppender, const AppenderPtr& newAppender) LOG4CXX_16_VIRTUAL_SPECIFIER;
+ bool replaceAppender(const AppenderPtr& oldAppender, const AppenderPtr& newAppender) override;
/**
* Replace all previously added appenders with \c newList.
*/
- void replaceAppenders(const AppenderList& newList) LOG4CXX_16_VIRTUAL_SPECIFIER;
+ void replaceAppenders(const AppenderList& newList) override;
/**
Set the additivity flag for this logger.
@@ -2257,12 +2226,8 @@ LOG4CXX_LIST_DEF(LoggerList, LoggerPtr);
#endif
#ifndef LOG4CXX_FMT_VA_ARG
-#if __cplusplus >= 202002L
- #define LOG4CXX_FMT_VA_ARG(...) __VA_OPT__(,) __VA_ARGS__
-#else
#define LOG4CXX_FMT_VA_ARG(...) , __VA_ARGS__
#endif
-#endif
/** @addtogroup LoggingMacros Logging macros
@{
diff --git a/src/main/include/log4cxx/net/smtpappender.h b/src/main/include/log4cxx/net/smtpappender.h
index 5b6ebebf9..b45e1483e 100644
--- a/src/main/include/log4cxx/net/smtpappender.h
+++ b/src/main/include/log4cxx/net/smtpappender.h
@@ -141,13 +141,13 @@ class LOG4CXX_EXPORT SMTPAppender : public AppenderSkeleton
address and port.
*/
-#if LOG4CXX_ABI_VERSION <= 15
- SocketAppenderSkeleton(helpers::InetAddressPtr address, int port, int reconnectionDelay);
-#else
SocketAppenderSkeleton(const helpers::InetAddressPtr& address, int port, int reconnectionDelay);
-#endif
/**
Connects to remote server at host and port.
*/
@@ -108,21 +101,10 @@ class LOG4CXX_EXPORT SocketAppenderSkeleton : public AppenderSkeleton
Connects to the specified RemoteHost and Port.
*/
- void activateOptions( LOG4CXX_ACTIVATE_OPTIONS_FORMAL_PARAMETERS ) override;
+ void activateOptions( ) override;
void close() override;
-#if LOG4CXX_ABI_VERSION <= 15
- /**
- * This appender does not use a layout. Hence, this method
- * returns false.
- *
- */
- bool requiresLayout() const override
- {
- return false;
- }
-#endif
/**
* The RemoteHost option takes a string value which should be
* the host name of the server where a
@@ -174,12 +156,6 @@ class LOG4CXX_EXPORT SocketAppenderSkeleton : public AppenderSkeleton
*/
int getReconnectionDelay() const;
-#if LOG4CXX_ABI_VERSION <= 15
- /**
- @deprecated This method will be removed in a future version.
- */
- void fireConnector();
-#else
/**
* Use \c newSubclass as the helpers::Socket interface instead of the default implementation.
* */
@@ -189,7 +165,6 @@ class LOG4CXX_EXPORT SocketAppenderSkeleton : public AppenderSkeleton
The class name used for the helpers::Socket interface implemention.
*/
const LogString& getSocketSubclass() const;
-#endif
/**
\copybrief AppenderSkeleton::setOption()
@@ -214,17 +189,6 @@ class LOG4CXX_EXPORT SocketAppenderSkeleton : public AppenderSkeleton
protected:
SocketAppenderSkeleton(std::unique_ptraddress and port.
*/
-#if LOG4CXX_ABI_VERSION <= 15
- XMLSocketAppender(helpers::InetAddressPtr address, int port);
-#else
XMLSocketAppender(const helpers::InetAddressPtr& address, int port);
-#endif
/**
Connects to remote server at host and port.
@@ -94,7 +84,6 @@ class LOG4CXX_EXPORT XMLSocketAppender : public SocketAppenderSkeleton
using SocketAppenderSkeleton::activateOptions;
-#if 15 < LOG4CXX_ABI_VERSION
/**
* This appender has a default layout.
* @returns false
@@ -103,34 +92,19 @@ class LOG4CXX_EXPORT XMLSocketAppender : public SocketAppenderSkeleton
{
return false;
}
-#endif
protected:
-#if LOG4CXX_ABI_VERSION <= 15
- /**
- @deprecated This method will be removed in a future version.
- */
- void setSocket(LOG4CXX_NS::helpers::SocketPtr& socket, helpers::Pool& p) override;
-
- /**
- @deprecated This method will be removed in a future version.
- */
- void cleanUp(helpers::Pool& p) override;
-#endif
int getDefaultDelay() const override;
int getDefaultPort() const override;
- void append( LOG4CXX_APPEND_FORMAL_PARAMETERS ) override;
+ void append( const spi::LoggingEventPtr& event ) override;
private:
// prevent copy and assignment statements
XMLSocketAppender(const XMLSocketAppender&);
XMLSocketAppender& operator=(const XMLSocketAppender&);
-#if LOG4CXX_ABI_VERSION <= 15
- struct XMLSocketAppenderPriv;
-#endif
}; // class XMLSocketAppender
LOG4CXX_PTR_DEF(XMLSocketAppender);
diff --git a/src/main/include/log4cxx/nt/nteventlogappender.h b/src/main/include/log4cxx/nt/nteventlogappender.h
index d88154a76..e20676605 100644
--- a/src/main/include/log4cxx/nt/nteventlogappender.h
+++ b/src/main/include/log4cxx/nt/nteventlogappender.h
@@ -48,7 +48,7 @@ class LOG4CXX_EXPORT NTEventLogAppender : public AppenderSkeleton
Calls RegisterEventSource.
*/
- void activateOptions( LOG4CXX_ACTIVATE_OPTIONS_FORMAL_PARAMETERS ) override;
+ void activateOptions( ) override;
void close() override;
/**
@@ -99,7 +99,7 @@ class LOG4CXX_EXPORT NTEventLogAppender : public AppenderSkeleton
typedef void SID;
typedef void* HANDLE;
- void append( LOG4CXX_APPEND_FORMAL_PARAMETERS ) override;
+ void append( const spi::LoggingEventPtr& event ) override;
static unsigned short getEventType(const spi::LoggingEventPtr& event);
static unsigned short getEventCategory(const spi::LoggingEventPtr& event);
/*
diff --git a/src/main/include/log4cxx/nt/outputdebugstringappender.h b/src/main/include/log4cxx/nt/outputdebugstringappender.h
index 24ca24108..a6201c0b9 100644
--- a/src/main/include/log4cxx/nt/outputdebugstringappender.h
+++ b/src/main/include/log4cxx/nt/outputdebugstringappender.h
@@ -42,7 +42,7 @@ class LOG4CXX_EXPORT OutputDebugStringAppender : public AppenderSkeleton
void close() override {}
- void append( LOG4CXX_APPEND_FORMAL_PARAMETERS ) override;
+ void append( const spi::LoggingEventPtr& event ) override;
};
}
}
diff --git a/src/main/include/log4cxx/pattern/classnamepatternconverter.h b/src/main/include/log4cxx/pattern/classnamepatternconverter.h
index 6c78f0063..107f75799 100644
--- a/src/main/include/log4cxx/pattern/classnamepatternconverter.h
+++ b/src/main/include/log4cxx/pattern/classnamepatternconverter.h
@@ -57,7 +57,7 @@ class LOG4CXX_EXPORT ClassNamePatternConverter : public NamePatternConverter
using NamePatternConverter::format;
- void format( LOG4CXX_FORMAT_EVENT_FORMAL_PARAMETERS ) const override;
+ void format( const spi::LoggingEventPtr& event, LogString& toAppendTo ) const override;
};
}
diff --git a/src/main/include/log4cxx/pattern/colorendpatternconverter.h b/src/main/include/log4cxx/pattern/colorendpatternconverter.h
index 3f3451670..b535c4d55 100644
--- a/src/main/include/log4cxx/pattern/colorendpatternconverter.h
+++ b/src/main/include/log4cxx/pattern/colorendpatternconverter.h
@@ -54,7 +54,7 @@ class LOG4CXX_EXPORT ColorEndPatternConverter
using LoggingEventPatternConverter::format;
- void format( LOG4CXX_FORMAT_EVENT_FORMAL_PARAMETERS ) const override;
+ void format( const spi::LoggingEventPtr& event, LogString& toAppendTo ) const override;
};
}
diff --git a/src/main/include/log4cxx/pattern/colorstartpatternconverter.h b/src/main/include/log4cxx/pattern/colorstartpatternconverter.h
index 07fb83bb8..e48f66710 100644
--- a/src/main/include/log4cxx/pattern/colorstartpatternconverter.h
+++ b/src/main/include/log4cxx/pattern/colorstartpatternconverter.h
@@ -56,7 +56,7 @@ class LOG4CXX_EXPORT ColorStartPatternConverter
using LoggingEventPatternConverter::format;
- void format( LOG4CXX_FORMAT_EVENT_FORMAL_PARAMETERS ) const override;
+ void format( const spi::LoggingEventPtr& event, LogString& toAppendTo ) const override;
void setFatalColor(const LogString& color);
void setErrorColor(const LogString& color);
diff --git a/src/main/include/log4cxx/pattern/datepatternconverter.h b/src/main/include/log4cxx/pattern/datepatternconverter.h
index ff7acb737..c0e638c5e 100644
--- a/src/main/include/log4cxx/pattern/datepatternconverter.h
+++ b/src/main/include/log4cxx/pattern/datepatternconverter.h
@@ -79,24 +79,19 @@ class LOG4CXX_EXPORT DatePatternConverter : public LoggingEventPatternConverter
/**
* Append to \c output a textual version of the timestamp in \c event.
*/
- void format( LOG4CXX_FORMAT_EVENT_FORMAL_PARAMETERS ) const override;
+ void format( const spi::LoggingEventPtr& event, LogString& toAppendTo ) const override;
/**
* Append to \c output a textual version of the date or timestamp in \c obj.
*
* Nothing is added to \c output if \c obj does not point to a Date or spi::LoggingEvent.
*/
- void format( LOG4CXX_FORMAT_OBJECT_FORMAL_PARAMETERS ) const override;
+ void format( const helpers::ObjectPtr& obj, LogString& toAppendTo ) const override;
/**
* Append to \c toAppendTo a textual version of \c date.
*/
void format(const helpers::DatePtr& date, LogString& toAppendTo) const;
-#if LOG4CXX_ABI_VERSION <= 15
- void format(const helpers::DatePtr& date,
- LogString& toAppendTo,
- helpers::Pool& p) const;
-#endif
};
LOG4CXX_PTR_DEF(DatePatternConverter);
diff --git a/src/main/include/log4cxx/pattern/filelocationpatternconverter.h b/src/main/include/log4cxx/pattern/filelocationpatternconverter.h
index c3ee3a203..57080de0a 100644
--- a/src/main/include/log4cxx/pattern/filelocationpatternconverter.h
+++ b/src/main/include/log4cxx/pattern/filelocationpatternconverter.h
@@ -54,7 +54,7 @@ class LOG4CXX_EXPORT FileLocationPatternConverter
using LoggingEventPatternConverter::format;
- void format( LOG4CXX_FORMAT_EVENT_FORMAL_PARAMETERS ) const override;
+ void format( const spi::LoggingEventPtr& event, LogString& toAppendTo ) const override;
};
}
diff --git a/src/main/include/log4cxx/pattern/formattinginfo.h b/src/main/include/log4cxx/pattern/formattinginfo.h
index 449f820ce..49c3308f5 100644
--- a/src/main/include/log4cxx/pattern/formattinginfo.h
+++ b/src/main/include/log4cxx/pattern/formattinginfo.h
@@ -85,17 +85,6 @@ class LOG4CXX_EXPORT FormattingInfo : public virtual LOG4CXX_NS::helpers::Object
*/
int getMaxLength() const;
-#if LOG4CXX_ABI_VERSION <= 15
- /**
- * Adjust the content of the buffer based on the specified lengths and alignment.
- * @deprecated This function is deprecated and will be removed in a future version.
- *
- * @param fieldStart start of field in buffer.
- * @param buffer buffer to be modified.
- */
- [[ deprecated( "Use adjustField() instead" ) ]]
- void format(const int fieldStart, LogString& buffer) const;
-#endif
/**
* Adjust the content of the buffer based on the specified lengths and alignment.
*
diff --git a/src/main/include/log4cxx/pattern/fulllocationpatternconverter.h b/src/main/include/log4cxx/pattern/fulllocationpatternconverter.h
index cdbcd0a44..0688788fb 100644
--- a/src/main/include/log4cxx/pattern/fulllocationpatternconverter.h
+++ b/src/main/include/log4cxx/pattern/fulllocationpatternconverter.h
@@ -54,7 +54,7 @@ class LOG4CXX_EXPORT FullLocationPatternConverter
using LoggingEventPatternConverter::format;
- void format( LOG4CXX_FORMAT_EVENT_FORMAL_PARAMETERS ) const override;
+ void format( const spi::LoggingEventPtr& event, LogString& toAppendTo ) const override;
};
}
diff --git a/src/main/include/log4cxx/pattern/integerpatternconverter.h b/src/main/include/log4cxx/pattern/integerpatternconverter.h
index c5886a087..7de9085be 100644
--- a/src/main/include/log4cxx/pattern/integerpatternconverter.h
+++ b/src/main/include/log4cxx/pattern/integerpatternconverter.h
@@ -52,7 +52,7 @@ class LOG4CXX_EXPORT IntegerPatternConverter : public PatternConverter
const std::vectorRollingFileAppender.
*/
class LOG4CXX_EXPORT TimeBasedRollingPolicy
-#if LOG4CXX_ABI_VERSION <= 15
- : public virtual RollingPolicyBase
- , public virtual TriggeringPolicy
-#else
: public RollingPolicyBase
, public virtual TriggeringPolicy
-#endif
{
DECLARE_LOG4CXX_OBJECT(TimeBasedRollingPolicy)
BEGIN_LOG4CXX_CAST_MAP()
@@ -168,7 +163,7 @@ class LOG4CXX_EXPORT TimeBasedRollingPolicy
\sa RollingPolicyBase::activateOptions()
*/
- void activateOptions( LOG4CXX_ACTIVATE_OPTIONS_FORMAL_PARAMETERS) override;
+ void activateOptions( ) override;
void setMultiprocess(bool multiprocess);
@@ -176,13 +171,13 @@ class LOG4CXX_EXPORT TimeBasedRollingPolicy
/**
* {@inheritDoc}
*/
- RolloverDescriptionPtr initialize( LOG4CXX_ROLLING_POLICY_INITIALIZE_FORMAL_PARAMETERS ) override;
+ RolloverDescriptionPtr initialize( const LogString& currentActiveFile, bool append ) override;
using RollingPolicy::rollover;
/**
* {@inheritDoc}
*/
- RolloverDescriptionPtr rollover( LOG4CXX_ROLLING_POLICY_ROLLOVER_FORMAL_PARAMETERS ) override;
+ RolloverDescriptionPtr rollover( const LogString& currentActiveFile, bool append ) override;
/**
* Determines if a rollover may be appropriate at this time. If
diff --git a/src/main/include/log4cxx/rolling/triggeringpolicy.h b/src/main/include/log4cxx/rolling/triggeringpolicy.h
index 15ce1f206..f1a98e848 100644
--- a/src/main/include/log4cxx/rolling/triggeringpolicy.h
+++ b/src/main/include/log4cxx/rolling/triggeringpolicy.h
@@ -42,12 +42,7 @@ namespace rolling
* */
class LOG4CXX_EXPORT TriggeringPolicy
-#if LOG4CXX_ABI_VERSION <= 15
- : public virtual spi::OptionHandler
- , public virtual helpers::Object
-#else
: public spi::OptionHandler
-#endif
{
DECLARE_ABSTRACT_LOG4CXX_OBJECT(TriggeringPolicy)
BEGIN_LOG4CXX_CAST_MAP()
diff --git a/src/main/include/log4cxx/rolling/zipcompressaction.h b/src/main/include/log4cxx/rolling/zipcompressaction.h
index dbec553f3..d6217fda5 100644
--- a/src/main/include/log4cxx/rolling/zipcompressaction.h
+++ b/src/main/include/log4cxx/rolling/zipcompressaction.h
@@ -48,7 +48,7 @@ class ZipCompressAction : public Action
/**
* Compress the file.
*/
- bool execute( LOG4CXX_EXECUTE_ACTION_FORMAL_PARAMETERS ) const override;
+ bool execute( ) const override;
/**
* Set to true to throw an IOException on a fork failure. By default, this
diff --git a/src/main/include/log4cxx/simplelayout.h b/src/main/include/log4cxx/simplelayout.h
index eb19e77dc..f574f1d37 100644
--- a/src/main/include/log4cxx/simplelayout.h
+++ b/src/main/include/log4cxx/simplelayout.h
@@ -50,7 +50,7 @@ class LOG4CXX_EXPORT SimpleLayout : public Layout
INFO - "A message"*/ - void format( LOG4CXX_FORMAT_LAYOUT_FORMAL_PARAMETERS ) const override; + void format( LogString& output, const spi::LoggingEventPtr& event ) const override; /** The SimpleLayout does not handle the throwable contained within @@ -62,14 +62,6 @@ class LOG4CXX_EXPORT SimpleLayout : public Layout return true; } -#if LOG4CXX_ABI_VERSION <= 15 - /** - \copybrief spi::OptionHandler::activateOptions() - - No action is performed in this implementation. - */ - void activateOptions( LOG4CXX_ACTIVATE_OPTIONS_FORMAL_PARAMETERS ) override {} -#endif /** \copybrief spi::OptionHandler::setOption() diff --git a/src/main/include/log4cxx/spi/appenderattachable.h b/src/main/include/log4cxx/spi/appenderattachable.h index a716fabab..0f7710add 100644 --- a/src/main/include/log4cxx/spi/appenderattachable.h +++ b/src/main/include/log4cxx/spi/appenderattachable.h @@ -72,7 +72,6 @@ class LOG4CXX_EXPORT AppenderAttachable : public virtual helpers::Object */ virtual void removeAppender(const LogString& name) = 0; -#if 15 < LOG4CXX_ABI_VERSION /** * Replace \c oldAppender with \c newAppender. * @return true if oldAppender was replaced with newAppender. @@ -83,7 +82,6 @@ class LOG4CXX_EXPORT AppenderAttachable : public virtual helpers::Object * Replace any previously added appenders with \c newList. */ virtual void replaceAppenders(const AppenderList& newList) = 0; -#endif // Dtor virtual ~AppenderAttachable() {} diff --git a/src/main/include/log4cxx/spi/configurator.h b/src/main/include/log4cxx/spi/configurator.h index 3192df4ac..3141a79d6 100644 --- a/src/main/include/log4cxx/spi/configurator.h +++ b/src/main/include/log4cxx/spi/configurator.h @@ -40,11 +40,9 @@ class LOG4CXX_EXPORT Configurator : virtual public helpers::Object { public: DECLARE_ABSTRACT_LOG4CXX_OBJECT(Configurator) -#if 15 < LOG4CXX_ABI_VERSION BEGIN_LOG4CXX_CAST_MAP() LOG4CXX_CAST_ENTRY(Configurator) END_LOG4CXX_CAST_MAP() -#endif /** Read configuration from \c configFileName. @@ -58,11 +56,7 @@ class LOG4CXX_EXPORT Configurator : virtual public helpers::Object */ virtual ConfigurationStatus doConfigure ( const File& configFileName -#if LOG4CXX_ABI_VERSION <= 15 - , spi::LoggerRepositoryPtr repository -#else , const spi::LoggerRepositoryPtr& repository = spi::LoggerRepositoryPtr() -#endif ) = 0; /** diff --git a/src/main/include/log4cxx/spi/defaultrepositoryselector.h b/src/main/include/log4cxx/spi/defaultrepositoryselector.h index 82a31a4b2..285769eab 100644 --- a/src/main/include/log4cxx/spi/defaultrepositoryselector.h +++ b/src/main/include/log4cxx/spi/defaultrepositoryselector.h @@ -28,12 +28,7 @@ namespace LOG4CXX_NS namespace spi { class LOG4CXX_EXPORT DefaultRepositorySelector -#if LOG4CXX_ABI_VERSION <= 15 - : public virtual RepositorySelector - , public virtual helpers::Object -#else : public RepositorySelector -#endif { public: DECLARE_ABSTRACT_LOG4CXX_OBJECT(DefaultRepositorySelector) diff --git a/src/main/include/log4cxx/spi/errorhandler.h b/src/main/include/log4cxx/spi/errorhandler.h index dd11f2934..a8620d47c 100644 --- a/src/main/include/log4cxx/spi/errorhandler.h +++ b/src/main/include/log4cxx/spi/errorhandler.h @@ -56,11 +56,7 @@ that errors are not properly handled. You are most welcome to suggest new error handling policies or criticize existing policies. */ class LOG4CXX_EXPORT ErrorHandler -#if LOG4CXX_ABI_VERSION <= 15 - : public virtual OptionHandler -#else : public OptionHandler -#endif { public: DECLARE_ABSTRACT_LOG4CXX_OBJECT(ErrorHandler) @@ -71,14 +67,12 @@ class LOG4CXX_EXPORT ErrorHandler virtual ~ErrorHandler() {} -#if 15 < LOG4CXX_ABI_VERSION /** Add \c clx to the list of collections to search for the failed appender. @param name the collection name. @param clx has a collection of appenders. */ virtual void addAppenderHolder(const LogString& name, const AppenderAttachablePtr& clx) {}; -#endif /** Add a reference to a logger to which the failing appender might @@ -128,7 +122,6 @@ class LOG4CXX_EXPORT ErrorHandler */ virtual void setBackupAppender(const AppenderPtr& appender) = 0; -#if 15 < LOG4CXX_ABI_VERSION /** Has an error been reported? */ @@ -140,8 +133,7 @@ class LOG4CXX_EXPORT ErrorHandler No action is performed in this implementation. */ - void activateOptions( LOG4CXX_ACTIVATE_OPTIONS_FORMAL_PARAMETERS ) override; -#endif + void activateOptions( ) override; }; diff --git a/src/main/include/log4cxx/spi/filter.h b/src/main/include/log4cxx/spi/filter.h index a2d822c4e..55e19ddd4 100644 --- a/src/main/include/log4cxx/spi/filter.h +++ b/src/main/include/log4cxx/spi/filter.h @@ -65,11 +65,7 @@ Linux ipchains.
Note that filtering is only supported by the DOMConfigurator.
*/
class LOG4CXX_EXPORT Filter
-#if LOG4CXX_ABI_VERSION <= 15
- : public virtual OptionHandler
-#else
: public OptionHandler
-#endif
{
protected:
LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(FilterPrivate, m_priv)
@@ -113,7 +109,7 @@ class LOG4CXX_EXPORT Filter
No action is performed in this implementation.
*/
- void activateOptions( LOG4CXX_ACTIVATE_OPTIONS_FORMAL_PARAMETERS ) override;
+ void activateOptions( ) override;
/**
\copybrief spi::OptionHandler::setOption()
diff --git a/src/main/include/log4cxx/spi/loggerfactory.h b/src/main/include/log4cxx/spi/loggerfactory.h
index ed502b1b7..f6f05f029 100644
--- a/src/main/include/log4cxx/spi/loggerfactory.h
+++ b/src/main/include/log4cxx/spi/loggerfactory.h
@@ -32,24 +32,13 @@ a sub-class of Logger.
class LOG4CXX_EXPORT LoggerFactory : public virtual helpers::Object
{
public:
-#if LOG4CXX_ABI_VERSION <= 15
- DECLARE_ABSTRACT_LOG4CXX_OBJECT(LoggerFactory)
-#else
DECLARE_LOG4CXX_OBJECT(LoggerFactory)
BEGIN_LOG4CXX_CAST_MAP()
LOG4CXX_CAST_ENTRY(LoggerFactory)
END_LOG4CXX_CAST_MAP()
-#endif
virtual ~LoggerFactory() {}
-#if LOG4CXX_ABI_VERSION <= 15
- [[ deprecated( "Pool is no longer required" ) ]]
- virtual LoggerPtr makeNewLoggerInstance(helpers::Pool& pool, const LogString& name) const = 0;
-
- LoggerPtr makeNewLoggerInstance(const LogString& name) const;
-#else
virtual LoggerPtr makeNewLoggerInstance(const LogString& name) const;
-#endif
};
diff --git a/src/main/include/log4cxx/spi/loggerrepository.h b/src/main/include/log4cxx/spi/loggerrepository.h
index 40f5e5cfc..bd7a42773 100644
--- a/src/main/include/log4cxx/spi/loggerrepository.h
+++ b/src/main/include/log4cxx/spi/loggerrepository.h
@@ -43,11 +43,9 @@ class LOG4CXX_EXPORT LoggerRepository : public virtual helpers::Object
{
public:
DECLARE_ABSTRACT_LOG4CXX_OBJECT(LoggerRepository)
-#if 15 < LOG4CXX_ABI_VERSION
BEGIN_LOG4CXX_CAST_MAP()
LOG4CXX_CAST_ENTRY(LoggerRepository)
END_LOG4CXX_CAST_MAP()
-#endif
virtual ~LoggerRepository() {}
/**
@@ -57,13 +55,11 @@ class LOG4CXX_EXPORT LoggerRepository : public virtual helpers::Object
virtual void addHierarchyEventListener(const HierarchyEventListenerPtr&
listener) = 0;
-#if 15 < LOG4CXX_ABI_VERSION
/**
* Remove a previously added HierarchyEventListener from the repository.
*
*/
virtual void removeHierarchyEventListener(const spi::HierarchyEventListenerPtr& listener) = 0;
-#endif
/**
* Call \c configurator if not yet configured.
@@ -115,7 +111,6 @@ class LOG4CXX_EXPORT LoggerRepository : public virtual helpers::Object
virtual LoggerPtr getLogger(const LogString& name,
const spi::LoggerFactoryPtr& factory) = 0;
-#if 15 < LOG4CXX_ABI_VERSION
/**
Remove the \c name Logger from the repository.
@@ -128,7 +123,6 @@ class LOG4CXX_EXPORT LoggerRepository : public virtual helpers::Object
@returns true if \c name Logger was removed from the repository.
*/
virtual bool removeLogger(const LogString& name, bool ifNotUsed = true) = 0;
-#endif
virtual LoggerPtr getRootLogger() const = 0;
diff --git a/src/main/include/log4cxx/spi/loggingevent.h b/src/main/include/log4cxx/spi/loggingevent.h
index e40c8a5fe..5ec6c1f2a 100644
--- a/src/main/include/log4cxx/spi/loggingevent.h
+++ b/src/main/include/log4cxx/spi/loggingevent.h
@@ -173,13 +173,6 @@ class LOG4CXX_EXPORT LoggingEvent :
*/
KeySet getMDCKeySet() const;
-#if LOG4CXX_ABI_VERSION <= 15
- /**
- Obtain a copy of the current thread's diagnostic context data.
- */
- [[ deprecated( "Use LoadDC instead" ) ]]
- void getMDCCopy() const;
-#endif
/**
* Obtain a copy of the current thread's diagnostic context data.
diff --git a/src/main/include/log4cxx/spi/optionhandler.h b/src/main/include/log4cxx/spi/optionhandler.h
index ef0022137..958d7612b 100644
--- a/src/main/include/log4cxx/spi/optionhandler.h
+++ b/src/main/include/log4cxx/spi/optionhandler.h
@@ -49,18 +49,6 @@ class LOG4CXX_EXPORT OptionHandler : public virtual helpers::Object
the Send log output to \c writer which must be open and be writable.
-
- The helpers::Writer will be closed when the
- appender instance is closed.
-
- WARNING: Logging to an unopened Writer will fail.
-
- @param writer An already opened Writer.
- */
- [[ deprecated( "Use WriterAppenderPriv::setWriter" ) ]]
- void setWriter(const helpers::WriterPtr& writer);
-
- [[ deprecated( "Use WriterAppenderPriv::getWriter" ) ]]
- const helpers::WriterPtr getWriter() const;
-#endif
bool requiresLayout() const override;
@@ -181,28 +152,9 @@ class LOG4CXX_EXPORT WriterAppender : public AppenderSkeleton
/**
Actual writing occurs here.
*/
- virtual void subAppend( LOG4CXX_APPEND_FORMAL_PARAMETERS );
+ virtual void subAppend( const spi::LoggingEventPtr& event );
-#if LOG4CXX_ABI_VERSION <= 15
- /**
- Write a footer as produced by the embedded layout's
- Layout#appendFooter method. */
- [[ deprecated( "Specialize Layout instead of Appender" ) ]]
- virtual void writeFooter(helpers::Pool& p);
-
- /**
- Write a header as produced by the embedded layout's
- Layout#appendHeader method. */
- [[ deprecated( "Specialize Layout instead of Appender" ) ]]
- virtual void writeHeader(helpers::Pool& p);
-
- /**
- * Set the writer. Mutex must already be held.
- */
- [[ deprecated( "Use WriterAppenderPriv::setWriter" ) ]]
- void setWriterInternal(const helpers::WriterPtr& writer);
-#endif
private:
//
// prevent copy and assignment
diff --git a/src/main/include/log4cxx/xml/domconfigurator.h b/src/main/include/log4cxx/xml/domconfigurator.h
index 028aab40f..db9b18c9a 100644
--- a/src/main/include/log4cxx/xml/domconfigurator.h
+++ b/src/main/include/log4cxx/xml/domconfigurator.h
@@ -20,18 +20,6 @@
#include File and Append options both of
which are ambiguous until the other is also set.
*/
-#if LOG4CXX_ABI_VERSION <= 15
-#define LOG4CXX_ACTIVATE_OPTIONS_FORMAL_PARAMETERS helpers::Pool& p
-#define LOG4CXX_ACTIVATE_OPTIONS_PARAMETER p
- void activateOptions();
- /**
- @deprecated The \c pool parameter is not used and will be removed in a future version.
- Implement this method for now, but plan to migrate to activateOptions() without parameters.
- */
- virtual void activateOptions(helpers::Pool&) = 0;
-#else
-#define LOG4CXX_ACTIVATE_OPTIONS_FORMAL_PARAMETERS
-#define LOG4CXX_ACTIVATE_OPTIONS_PARAMETER
virtual void activateOptions() = 0;
/**
@deprecated This function is deprecated and will be removed in a future version.
@@ -68,7 +56,6 @@ class LOG4CXX_EXPORT OptionHandler : public virtual helpers::Object
*/
[[deprecated("Use activateOptions() without parameters instead")]]
void activateOptions(helpers::Pool&);
-#endif
/**
Set option to value.
@@ -85,10 +72,5 @@ class LOG4CXX_EXPORT OptionHandler : public virtual helpers::Object
} // namespace log4cxx
-#if 15 < LOG4CXX_ABI_VERSION
-#define LOG4CXX_16_VIRTUAL_SPECIFIER override
-#else
-#define LOG4CXX_16_VIRTUAL_SPECIFIER
-#endif
#endif //_LOG4CXX_SPI_OPTION_HANDLER_H
diff --git a/src/main/include/log4cxx/spi/rootlogger.h b/src/main/include/log4cxx/spi/rootlogger.h
index 0481cb31f..5351b91b2 100644
--- a/src/main/include/log4cxx/spi/rootlogger.h
+++ b/src/main/include/log4cxx/spi/rootlogger.h
@@ -42,10 +42,6 @@ class LOG4CXX_EXPORT RootLogger : public Logger
*/
RootLogger(const LevelPtr& level);
-#if LOG4CXX_ABI_VERSION <= 15
- [[ deprecated( "Pool is no longer required" ) ]]
- RootLogger(helpers::Pool& pool, const LevelPtr level);
-#endif
~RootLogger() {}
diff --git a/src/main/include/log4cxx/varia/fallbackerrorhandler.h b/src/main/include/log4cxx/varia/fallbackerrorhandler.h
index 0bcc3d780..61ea8a152 100644
--- a/src/main/include/log4cxx/varia/fallbackerrorhandler.h
+++ b/src/main/include/log4cxx/varia/fallbackerrorhandler.h
@@ -19,9 +19,6 @@
#define _LOG4CXX_VARIA_FALLBACK_ERROR_HANDLER_H
#include encoding property. If the encoding value is
specified incorrectly the writer will be opened using the default
system encoding (an error message will be printed to the loglog. */
- virtual helpers::WriterPtr createWriter(LOG4CXX_16_CONST helpers::OutputStreamPtr& os);
+ virtual helpers::WriterPtr createWriter(const helpers::OutputStreamPtr& os);
public:
/**
@@ -157,23 +145,6 @@ class LOG4CXX_EXPORT WriterAppender : public AppenderSkeleton
*/
void setOption(const LogString& option, const LogString& value) override;
-#if LOG4CXX_ABI_VERSION <= 15
- /**
-