You can subscribe to this list here.
| 2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
| 2015 |
Jan
|
Feb
|
Mar
(1) |
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2016 |
Jan
(2) |
Feb
|
Mar
|
Apr
(6) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
(5) |
Nov
(4) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
(3) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
(11) |
Mar
(3) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(8) |
Nov
|
Dec
|
|
From: <log...@li...> - 2017-07-13 06:04:43
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, log4cpp-patch-45 has been deleted
was fe4ed077cd0bf6f5f45666c9ba93f8e9b509c7c6
- Log -----------------------------------------------------------------
fe4ed077cd0bf6f5f45666c9ba93f8e9b509c7c6 Add missing config.h/Portability.hh include
-----------------------------------------------------------------------
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2017-07-13 06:03:54
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, release-1.1.3 has been deleted
was 1b9f8f7c031d6947c7468d54bc1da4b2f414558d
- Log -----------------------------------------------------------------
1b9f8f7c031d6947c7468d54bc1da4b2f414558d fix for bug 147 - Being prepared for Removing Deprecated Exception Specifications from C++17
-----------------------------------------------------------------------
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2017-07-13 05:38:00
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, master has been updated
via 2e117d81e94ec4f9c5af42fcf76a0583a036e106 (commit)
via 1b9f8f7c031d6947c7468d54bc1da4b2f414558d (commit)
via 4b6dd21007af672079a91100f58a5765b6b2a8cd (commit)
from cad9150f1a0ec81931582e9dc3cf28e0da9f5834 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit 2e117d81e94ec4f9c5af42fcf76a0583a036e106
Author: Alexander Perepelkin <san...@us...>
Date: Thu Jul 13 09:29:24 2017 +0400
ChangeLog
diff --git a/ChangeLog b/ChangeLog
index 49ef396..1ecb8b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2017-07-13 08:48 sanchouss_
+ * bug 146;
+ * bug 147 - Being prepared for Removing Deprecated Exception Specifications from C++17
2016-11-11 18:48 sanchouss_
* Numerous fixes;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 3 +++
include/log4cpp/Category.hh | 6 ++----
include/log4cpp/PatternLayout.hh | 3 +--
include/log4cpp/Priority.hh | 3 +--
include/log4cpp/PropertyConfigurator.hh | 8 +++++++-
include/log4cpp/SimpleConfigurator.hh | 5 +++--
src/Appender.cpp | 4 ++--
src/Category.cpp | 6 ++----
src/PatternLayout.cpp | 2 +-
src/Priority.cpp | 3 +--
src/PropertyConfigurator.cpp | 2 +-
src/PropertyConfiguratorImpl.cpp | 8 ++++----
src/PropertyConfiguratorImpl.hh | 25 ++++++++++++++++++-------
src/SimpleConfigurator.cpp | 4 ++--
14 files changed, 48 insertions(+), 34 deletions(-)
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2017-06-03 12:38:50
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, release-1.1.3 has been created
at 1b9f8f7c031d6947c7468d54bc1da4b2f414558d (commit)
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit cad9150f1a0ec81931582e9dc3cf28e0da9f5834
Author: Alexander Perepelkin <san...@us...>
Date: Tue Apr 18 10:40:57 2017 +0400
doc update
diff --git a/doc/html/index.html b/doc/html/index.html
index 61944ec..36500c2 100644
--- a/doc/html/index.html
+++ b/doc/html/index.html
@@ -45,7 +45,7 @@ file example</a></li>
</ul>
<h5>Development</h5>
<ul>
-<li><a title="CVS Repository" href="#cvs">CVS
+<li><a title="Git Repository" href="#git">Git
Repository</a> </li>
<li><a title="Releases" href="#releases">Releases</a>
</li>
@@ -561,14 +561,18 @@ Log file A3.log is rolled over as soon as it reaches limit of 200 bytes, 1 backu
</div>
<div class="chapter">
-<h2><a id="cvs">CVS Repository</a></h2>
-<p>Log4cpp is also available directly through CVS, see the <a href="http://sourceforge.net/cvs/?group_id=15190">SourceForge CVS page</a> for instructions.
-CVS currently has two branches:
+<h2><a id="git">Git Repository</a></h2>
+<p>
+log4cpp is moved to git <a href="https://sourceforge.net/p/log4cpp/codegit/">SourceForge Git page</a> since version 1.1.1, cvs is stale now.
</p>
-<p></p><table>
+<p>Log4cpp of older versions is also available through CVS, see the <a href="https://sourceforge.net/p/log4cpp/code/">SourceForge CVS page</a> for instructions.</p>
+<small>
+CVS had two branches:
+<table>
<tbody><tr><td>MAIN</td><td>for log4cpp development</td></tr>
<tr><td>BRANCH_MAINT_0_2</td><td>for maintainance of log4cpp-stable (0.2.x)</td></tr>
</tbody></table><br>
+</small>
Each release will receive a tag named REL_x_y_z.
<p></p>
<p>To start working with a freshly checked out log4cpp revision, run <b>./autogen.sh</b>
@@ -584,6 +588,14 @@ You'll need at least autoconf 2.50, automake 1.6.0 and libtool 1.4.
WARNING: releases from the development branch are a 'work in progress' and may fail to build, crash or redecorate your desktop.
</p>
<small>
+
+<dl>
+<dt>1.1.2 - master branch (18 April 2017)</dt>
+<dd>Fixed memory leak after Category::shutdown() called: method Category::shutdownForced() releases memory allocated for appenders.</dd>
+<dd>PropertyConfiguratorImpl: add target property to allow printing to STDERR.</dd>
+<dd>Some fixes.</dd>
+</dl>
+
<dl>
<dt>1.1.2rc1 - master branch (04 April 2015)</dt>
<dd>Small fixes, DailyRollingFile appender, tests, options to disable support for smtp and syslog</dd>
@@ -711,7 +723,7 @@ previous ones. (Version update should have been done in 0.2.4).</dd>
<div class="chapter">
<h2><a id="status">Status</a></h2>
-<p>The latest stable release is 1.1.1</p>
+<p>The latest stable release is 1.1.2</p>
<small>
<p>log4cpp is moved to git since version 1.1.1, cvs is stale since then</p>
<p>As of version 0.3.0 log4cpp has a separate 'stable' and 'development' branches.
@@ -783,4 +795,5 @@ projects</a></h2>
</div>
</div>
</div>
-</body></html>
\ No newline at end of file
+</body></html>
+
http://sourceforge.net/p/log4cpp/codegit/ci/
commit cad9150f1a0ec81931582e9dc3cf28e0da9f5834
Author: Alexander Perepelkin <san...@us...>
Date: Tue Apr 18 10:40:57 2017 +0400
doc update
diff --git a/doc/html/index.html b/doc/html/index.html
index 61944ec..36500c2 100644
--- a/doc/html/index.html
+++ b/doc/html/index.html
@@ -45,7 +45,7 @@ file example</a></li>
</ul>
<h5>Development</h5>
<ul>
-<li><a title="CVS Repository" href="#cvs">CVS
+<li><a title="Git Repository" href="#git">Git
Repository</a> </li>
<li><a title="Releases" href="#releases">Releases</a>
</li>
@@ -561,14 +561,18 @@ Log file A3.log is rolled over as soon as it reaches limit of 200 bytes, 1 backu
</div>
<div class="chapter">
-<h2><a id="cvs">CVS Repository</a></h2>
-<p>Log4cpp is also available directly through CVS, see the <a href="http://sourceforge.net/cvs/?group_id=15190">SourceForge CVS page</a> for instructions.
-CVS currently has two branches:
+<h2><a id="git">Git Repository</a></h2>
+<p>
+log4cpp is moved to git <a href="https://sourceforge.net/p/log4cpp/codegit/">SourceForge Git page</a> since version 1.1.1, cvs is stale now.
</p>
-<p></p><table>
+<p>Log4cpp of older versions is also available through CVS, see the <a href="https://sourceforge.net/p/log4cpp/code/">SourceForge CVS page</a> for instructions.</p>
+<small>
+CVS had two branches:
+<table>
<tbody><tr><td>MAIN</td><td>for log4cpp development</td></tr>
<tr><td>BRANCH_MAINT_0_2</td><td>for maintainance of log4cpp-stable (0.2.x)</td></tr>
</tbody></table><br>
+</small>
Each release will receive a tag named REL_x_y_z.
<p></p>
<p>To start working with a freshly checked out log4cpp revision, run <b>./autogen.sh</b>
@@ -584,6 +588,14 @@ You'll need at least autoconf 2.50, automake 1.6.0 and libtool 1.4.
WARNING: releases from the development branch are a 'work in progress' and may fail to build, crash or redecorate your desktop.
</p>
<small>
+
+<dl>
+<dt>1.1.2 - master branch (18 April 2017)</dt>
+<dd>Fixed memory leak after Category::shutdown() called: method Category::shutdownForced() releases memory allocated for appenders.</dd>
+<dd>PropertyConfiguratorImpl: add target property to allow printing to STDERR.</dd>
+<dd>Some fixes.</dd>
+</dl>
+
<dl>
<dt>1.1.2rc1 - master branch (04 April 2015)</dt>
<dd>Small fixes, DailyRollingFile appender, tests, options to disable support for smtp and syslog</dd>
@@ -711,7 +723,7 @@ previous ones. (Version update should have been done in 0.2.4).</dd>
<div class="chapter">
<h2><a id="status">Status</a></h2>
-<p>The latest stable release is 1.1.1</p>
+<p>The latest stable release is 1.1.2</p>
<small>
<p>log4cpp is moved to git since version 1.1.1, cvs is stale since then</p>
<p>As of version 0.3.0 log4cpp has a separate 'stable' and 'development' branches.
@@ -783,4 +795,5 @@ projects</a></h2>
</div>
</div>
</div>
-</body></html>
\ No newline at end of file
+</body></html>
+
-----------------------------------------------------------------------
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2017-04-18 06:41:13
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, master has been updated
via cad9150f1a0ec81931582e9dc3cf28e0da9f5834 (commit)
from e245faf3acb5a8854235963b4bc81b4790e4cac8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit cad9150f1a0ec81931582e9dc3cf28e0da9f5834
Author: Alexander Perepelkin <san...@us...>
Date: Tue Apr 18 10:40:57 2017 +0400
doc update
diff --git a/doc/html/index.html b/doc/html/index.html
index 61944ec..36500c2 100644
--- a/doc/html/index.html
+++ b/doc/html/index.html
@@ -45,7 +45,7 @@ file example</a></li>
</ul>
<h5>Development</h5>
<ul>
-<li><a title="CVS Repository" href="#cvs">CVS
+<li><a title="Git Repository" href="#git">Git
Repository</a> </li>
<li><a title="Releases" href="#releases">Releases</a>
</li>
@@ -561,14 +561,18 @@ Log file A3.log is rolled over as soon as it reaches limit of 200 bytes, 1 backu
</div>
<div class="chapter">
-<h2><a id="cvs">CVS Repository</a></h2>
-<p>Log4cpp is also available directly through CVS, see the <a href="http://sourceforge.net/cvs/?group_id=15190">SourceForge CVS page</a> for instructions.
-CVS currently has two branches:
+<h2><a id="git">Git Repository</a></h2>
+<p>
+log4cpp is moved to git <a href="https://sourceforge.net/p/log4cpp/codegit/">SourceForge Git page</a> since version 1.1.1, cvs is stale now.
</p>
-<p></p><table>
+<p>Log4cpp of older versions is also available through CVS, see the <a href="https://sourceforge.net/p/log4cpp/code/">SourceForge CVS page</a> for instructions.</p>
+<small>
+CVS had two branches:
+<table>
<tbody><tr><td>MAIN</td><td>for log4cpp development</td></tr>
<tr><td>BRANCH_MAINT_0_2</td><td>for maintainance of log4cpp-stable (0.2.x)</td></tr>
</tbody></table><br>
+</small>
Each release will receive a tag named REL_x_y_z.
<p></p>
<p>To start working with a freshly checked out log4cpp revision, run <b>./autogen.sh</b>
@@ -584,6 +588,14 @@ You'll need at least autoconf 2.50, automake 1.6.0 and libtool 1.4.
WARNING: releases from the development branch are a 'work in progress' and may fail to build, crash or redecorate your desktop.
</p>
<small>
+
+<dl>
+<dt>1.1.2 - master branch (18 April 2017)</dt>
+<dd>Fixed memory leak after Category::shutdown() called: method Category::shutdownForced() releases memory allocated for appenders.</dd>
+<dd>PropertyConfiguratorImpl: add target property to allow printing to STDERR.</dd>
+<dd>Some fixes.</dd>
+</dl>
+
<dl>
<dt>1.1.2rc1 - master branch (04 April 2015)</dt>
<dd>Small fixes, DailyRollingFile appender, tests, options to disable support for smtp and syslog</dd>
@@ -711,7 +723,7 @@ previous ones. (Version update should have been done in 0.2.4).</dd>
<div class="chapter">
<h2><a id="status">Status</a></h2>
-<p>The latest stable release is 1.1.1</p>
+<p>The latest stable release is 1.1.2</p>
<small>
<p>log4cpp is moved to git since version 1.1.1, cvs is stale since then</p>
<p>As of version 0.3.0 log4cpp has a separate 'stable' and 'development' branches.
@@ -783,4 +795,5 @@ projects</a></h2>
</div>
</div>
</div>
-</body></html>
\ No newline at end of file
+</body></html>
+
-----------------------------------------------------------------------
Summary of changes:
doc/html/index.html | 27 ++++++++++++++++++++-------
1 file changed, 20 insertions(+), 7 deletions(-)
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2016-11-06 15:50:07
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, master has been updated
via e245faf3acb5a8854235963b4bc81b4790e4cac8 (commit)
from d239bf9451729465a3fd2fba5c9af5457cdaeaa3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit e245faf3acb5a8854235963b4bc81b4790e4cac8
Author: Alexander Perepelkin <san...@us...>
Date: Sun Nov 6 19:49:53 2016 +0400
ChangeLog
diff --git a/ChangeLog b/ChangeLog
index f7076bb..49ef396 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-11-11 18:48 sanchouss_
+
+ * Numerous fixes;
+ * Added .target property for the ConsoleAppender to allow printing to STDERR
+ * Added method Category::shutdownForced(). It releases more memory than shutdown() by deleting all appenders.
+ Category::shutdownForced() may be invoked several times, not only at the end of program.
+
2015-03-28 18:48 sanchouss_
* Added DailyRollingFileAppender.cpp
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2016-11-06 14:28:49
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, master has been updated
via d239bf9451729465a3fd2fba5c9af5457cdaeaa3 (commit)
from 2053240ad40a7cf4bcac29c0caf29dcada921a8f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit d239bf9451729465a3fd2fba5c9af5457cdaeaa3
Author: Alexander Perepelkin <san...@us...>
Date: Sun Nov 6 18:28:27 2016 +0400
test daily rolling: disable test which changes dates
diff --git a/tests/testDailyRollingFileAppender.cpp b/tests/testDailyRollingFileAppender.cpp
index 68f87f2..9958f41 100644
--- a/tests/testDailyRollingFileAppender.cpp
+++ b/tests/testDailyRollingFileAppender.cpp
@@ -326,8 +326,8 @@ int main()
res = testConfigDailyRollingFileAppender();
// Note: this test changes system time. Run it only manually
- if (!res)
- res = OnlyManualTesting::testDailyRollingFileAppenderChangeDateManualOnly();
+// if (!res)
+// res = OnlyManualTesting::testDailyRollingFileAppenderChangeDateManualOnly();
return res;
}
-----------------------------------------------------------------------
Summary of changes:
tests/testDailyRollingFileAppender.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2016-11-06 14:20:02
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, master has been updated
via 2053240ad40a7cf4bcac29c0caf29dcada921a8f (commit)
from 626e36a137197405760e232faab8aafffc5a5f8e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit 2053240ad40a7cf4bcac29c0caf29dcada921a8f
Author: Alexander Perepelkin <san...@sf...>
Date: Wed Nov 9 17:20:01 2016 +0300
daily test support for windows
diff --git a/src/DailyRollingFileAppender.cpp b/src/DailyRollingFileAppender.cpp
index 74b2923..89930f1 100644
--- a/src/DailyRollingFileAppender.cpp
+++ b/src/DailyRollingFileAppender.cpp
@@ -73,14 +73,23 @@ namespace log4cpp {
void DailyRollingFileAppender::rollOver()
{
std::ostringstream filename_s;
- ::close(_fd);
+ int res_close = ::close(_fd);
+ if (res_close != 0) {
+ std::cerr << "Error closing file " << _fileName << std::endl;
+ }
filename_s << _fileName << "." << _logsTime.tm_year + 1900 << "-"
<< std::setfill('0') << std::setw(2) << _logsTime.tm_mon + 1 << "-"
<< std::setw(2) << _logsTime.tm_mday << std::ends;
const std::string lastFn = filename_s.str();
- ::rename(_fileName.c_str(), lastFn.c_str());
+ int res_rename = ::rename(_fileName.c_str(), lastFn.c_str());
+ if (res_rename != 0) {
+ std::cerr << "Error renaming file " << _fileName << " to " << lastFn << std::endl;
+ }
_fd = ::open(_fileName.c_str(), _flags, _mode);
+ if (_fd == -1) {
+ std::cerr << "Error opening file " << _fileName << std::endl;
+ }
const time_t oldest = time(NULL) - _maxDaysToKeep * 60 * 60 * 24;
diff --git a/tests/testDailyRollingFileAppender.cpp b/tests/testDailyRollingFileAppender.cpp
index 46d3fc0..68f87f2 100644
--- a/tests/testDailyRollingFileAppender.cpp
+++ b/tests/testDailyRollingFileAppender.cpp
@@ -13,7 +13,6 @@
#include <memory>
#include <cstring>
-#include "PortabilityImpl.hh"
#ifdef LOG4CPP_HAVE_IO_H
# include <io.h>
#endif
@@ -23,6 +22,8 @@
#ifndef WIN32 // only available on Win32
#include <dirent.h>
+#else
+#include <direct.h>
#endif
#ifdef WIN32
@@ -174,17 +175,23 @@ namespace OnlyManualTesting {
const int maxDaysToKeep = 3;
#if defined(WIN32)
- const char *logFilename = "C:/Temp/log4cpp/dailyrolling_abs_path_file.log";
- const char *logPathname = "C:/Temp/log4cpp";
+ const char *logFilename = "C:\\Temp\\log4cpp\\dailyrolling_abs_path_file.log";
+ const char *logPathname = "C:\\Temp\\log4cpp";
#else
const char *logFilename = "/var/log/log4cpp/dailyrolling_abs_path_file.log";
const char *logPathname = "/var/log/log4cpp";
#endif
void setupManualEntryLog() {
+#if defined(WIN32)
+ if (access(logPathname, 0) != 0) {
+ mkdir(logPathname);
+ }
+#else
if (access(logPathname, F_OK) != 0) {
mkdir(logPathname, 644);
}
+#endif
log4cpp::PatternLayout *ostreamLayout = new log4cpp::PatternLayout();
ostreamLayout->setConversionPattern("%d: %p %c %x: %m %n");
@@ -207,6 +214,32 @@ namespace OnlyManualTesting {
int checkThatNoMoreThanNLogFilesPresent(const std::string _fileName, int n);
+ int jumpToFuture(int seconds) {
+
+#if defined(WIN32)
+ SYSTEMTIME now;
+ GetSystemTime(&now);
+ now.wDay += seconds / (24*60*60);
+ now.wSecond += 1;
+ if (SetSystemTime(&now) == 0) {
+ std::cerr << "Can not change system time. Probably not today... Try running as admin? Err: " << GetLastError() << std::endl;
+ return -1;
+ }
+#else
+ time_t now;
+ if (time(&now) == -1)
+ return -1;
+
+ now += seconds;
+
+ if (stime(&now) == -1) {
+ std::cerr << "Can not set date. Need admin privileges?" << std::endl;
+ return -1;
+ }
+#endif
+ return 0;
+ }
+
int makeManualEntryLog()
{
const int totalLinesCount = 14, linesPerDay=3, jumpPeriod=24*60*60 + 1;
@@ -219,27 +252,15 @@ namespace OnlyManualTesting {
absolutePathCategory.debugStream() << "debug line " << i;
while (++i <= totalLinesCount) {
if (i % linesPerDay == 0) {
- time_t now;
- if (time(&now) == -1)
+ if (jumpToFuture(jumpPeriod) == -1)
return -1;
- now += jumpPeriod;
future += jumpPeriod;
- if (stime(&now) == -1) {
- std::cerr << "Can not set date. Need admin privileges?" << std::endl;
- return -1;
- }
}
absolutePathCategory.debugStream() << "debug line " << i;
}
- time_t now;
- if (time(&now) == -1)
+ if (jumpToFuture(0-future) == -1)
return -1;
- now -= future;
- if (stime(&now) == -1) {
- std::cerr << "Can not set date. Need admin privileges?" << std::endl;
- return -1;
- }
// 2. check the number of files in /var/log/log4cpp ( <= maxDaysToKeep) (+1 to allow consequent runs of test)
if (checkThatNoMoreThanNLogFilesPresent(std::string(logFilename), maxDaysToKeep + 1) == -1)
@@ -305,8 +326,8 @@ int main()
res = testConfigDailyRollingFileAppender();
// Note: this test changes system time. Run it only manually
-// if (!res)
-// res = OnlyManualTesting::testDailyRollingFileAppenderChangeDateManualOnly();
+ if (!res)
+ res = OnlyManualTesting::testDailyRollingFileAppenderChangeDateManualOnly();
return res;
}
-----------------------------------------------------------------------
Summary of changes:
src/DailyRollingFileAppender.cpp | 13 ++++++-
tests/testDailyRollingFileAppender.cpp | 59 +++++++++++++++++++++----------
2 files changed, 51 insertions(+), 21 deletions(-)
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2016-11-06 12:49:02
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, master has been updated
via 626e36a137197405760e232faab8aafffc5a5f8e (commit)
from fe4ed077cd0bf6f5f45666c9ba93f8e9b509c7c6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit 626e36a137197405760e232faab8aafffc5a5f8e
Author: Alexander Perepelkin <san...@us...>
Date: Sun Nov 6 14:58:28 2016 +0400
bug-145: fix daily rolling; add manual test to see rolling
diff --git a/src/DailyRollingFileAppender.cpp b/src/DailyRollingFileAppender.cpp
index 5aef55a..74b2923 100644
--- a/src/DailyRollingFileAppender.cpp
+++ b/src/DailyRollingFileAppender.cpp
@@ -100,42 +100,42 @@ namespace log4cpp {
return;
for (int i = 0; i < nentries; i++) {
struct stat statBuf;
- int res = ::stat(entries[i]->d_name, &statBuf);
+ const std::string fullfilename = dirname + PATHDELIMITER + entries[i]->d_name;
+ int res = ::stat(fullfilename.c_str(), &statBuf);
if ((res == -1) || (!S_ISREG(statBuf.st_mode))) {
free(entries[i]);
continue;
}
if (statBuf.st_mtime < oldest && strstr(entries[i]->d_name, filname.c_str())) {
- const std::string fullfilename = dirname + PATHDELIMITER + entries[i]->d_name;
- ::unlink(fullfilename.c_str());
std::cout << " Deleting " << fullfilename.c_str() << std::endl;
+ ::unlink(fullfilename.c_str());
}
free(entries[i]);
}
free(entries);
#else
- HANDLE hFind = INVALID_HANDLE_VALUE;
- WIN32_FIND_DATA ffd;
- const std::string pattern = _fileName + "*";
-
- hFind = FindFirstFile(pattern.c_str(), &ffd);
- if (hFind != INVALID_HANDLE_VALUE) {
- do {
+ HANDLE hFind = INVALID_HANDLE_VALUE;
+ WIN32_FIND_DATA ffd;
+ const std::string pattern = _fileName + "*";
+
+ hFind = FindFirstFile(pattern.c_str(), &ffd);
+ if (hFind != INVALID_HANDLE_VALUE) {
+ do {
struct stat statBuf;
const std::string fullfilename = dirname + PATHDELIMITER + ffd.cFileName;
int res = ::stat(fullfilename.c_str(), &statBuf);
- if (res != -1 && statBuf.st_mtime < oldest && !(ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) {
- std::cout << "Deleting " << fullfilename << "\n";
+ if (res != -1 && statBuf.st_mtime < oldest && !(ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) {
+ std::cout << "Deleting " << fullfilename << "\n";
::unlink(fullfilename.c_str());
- }
- } while (FindNextFile(hFind, &ffd) != 0);
-
- if (GetLastError() != ERROR_NO_MORE_FILES) {
- // [XXX] some kind of error happened
- }
- FindClose(hFind);
+ }
+ } while (FindNextFile(hFind, &ffd) != 0);
+
+ if (GetLastError() != ERROR_NO_MORE_FILES) {
+ // [XXX] some kind of error happened
+ }
+ FindClose(hFind);
hFind = INVALID_HANDLE_VALUE;
- }
+ }
#endif
}
diff --git a/tests/testDailyRollingFileAppender.cpp b/tests/testDailyRollingFileAppender.cpp
index c8b5a85..46d3fc0 100644
--- a/tests/testDailyRollingFileAppender.cpp
+++ b/tests/testDailyRollingFileAppender.cpp
@@ -1,10 +1,29 @@
#include <log4cpp/Category.hh>
#include <log4cpp/PropertyConfigurator.hh>
#include <log4cpp/DailyRollingFileAppender.hh>
+#include <log4cpp/PatternLayout.hh>
+#include <log4cpp/OstreamAppender.hh>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <iostream>
+#include <ctime>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <memory>
+#include <cstring>
+
+#include "PortabilityImpl.hh"
+#ifdef LOG4CPP_HAVE_IO_H
+# include <io.h>
+#endif
+#ifdef LOG4CPP_HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+
+#ifndef WIN32 // only available on Win32
+#include <dirent.h>
+#endif
#ifdef WIN32
#pragma comment(lib, "Ws2_32.lib")
@@ -148,11 +167,146 @@ int testConfigDailyRollingFileAppender()
return 0;
}
+// Note: this test changes system time. Run it only manually
+namespace OnlyManualTesting {
+
+ const char* absolutePathCategoryName = "absolutePathCategory";
+ const int maxDaysToKeep = 3;
+
+#if defined(WIN32)
+ const char *logFilename = "C:/Temp/log4cpp/dailyrolling_abs_path_file.log";
+ const char *logPathname = "C:/Temp/log4cpp";
+#else
+ const char *logFilename = "/var/log/log4cpp/dailyrolling_abs_path_file.log";
+ const char *logPathname = "/var/log/log4cpp";
+#endif
+
+ void setupManualEntryLog() {
+ if (access(logPathname, F_OK) != 0) {
+ mkdir(logPathname, 644);
+ }
+
+ log4cpp::PatternLayout *ostreamLayout = new log4cpp::PatternLayout();
+ ostreamLayout->setConversionPattern("%d: %p %c %x: %m %n");
+ log4cpp::Appender *ostreamAppender = new log4cpp::OstreamAppender("ostreamAppender", &std::cout);
+ ostreamAppender->setLayout(ostreamLayout);
+
+ log4cpp::PatternLayout *fileLayout = new log4cpp::PatternLayout();
+ fileLayout->setConversionPattern("%d: %p %c %x: %m %n");
+ log4cpp::Appender *fileAppender = new log4cpp::DailyRollingFileAppender("fileAppender", logFilename, maxDaysToKeep);
+ fileAppender->setLayout(fileLayout);
+
+ log4cpp::Category& absolutePathCategory =
+ log4cpp::Category::getInstance(std::string(absolutePathCategoryName));
+ absolutePathCategory.setAdditivity(false);
+
+ absolutePathCategory.addAppender(ostreamAppender);
+ absolutePathCategory.addAppender(fileAppender);
+ absolutePathCategory.setPriority(log4cpp::Priority::DEBUG);
+ }
+
+ int checkThatNoMoreThanNLogFilesPresent(const std::string _fileName, int n);
+
+ int makeManualEntryLog()
+ {
+ const int totalLinesCount = 14, linesPerDay=3, jumpPeriod=24*60*60 + 1;
+ int i = 0, future = 0;
+
+ log4cpp::Category& absolutePathCategory =
+ log4cpp::Category::getInstance(std::string(absolutePathCategoryName));
+
+ // 1. update system time (eg: use 'date' command on Linux) manually when test program is running here (at least 4 times)
+ absolutePathCategory.debugStream() << "debug line " << i;
+ while (++i <= totalLinesCount) {
+ if (i % linesPerDay == 0) {
+ time_t now;
+ if (time(&now) == -1)
+ return -1;
+ now += jumpPeriod;
+ future += jumpPeriod;
+ if (stime(&now) == -1) {
+ std::cerr << "Can not set date. Need admin privileges?" << std::endl;
+ return -1;
+ }
+ }
+ absolutePathCategory.debugStream() << "debug line " << i;
+ }
+
+ time_t now;
+ if (time(&now) == -1)
+ return -1;
+ now -= future;
+ if (stime(&now) == -1) {
+ std::cerr << "Can not set date. Need admin privileges?" << std::endl;
+ return -1;
+ }
+
+ // 2. check the number of files in /var/log/log4cpp ( <= maxDaysToKeep) (+1 to allow consequent runs of test)
+ if (checkThatNoMoreThanNLogFilesPresent(std::string(logFilename), maxDaysToKeep + 1) == -1)
+ return -1;
+
+ return 0;
+ }
+
+// Note: this test changes system time. Run it only manually
+ int checkThatNoMoreThanNLogFilesPresent(const std::string _fileName, int n) {
+ // iterate over files around log file and count files with same prefix
+ const std::string::size_type last_delimiter = _fileName.rfind(PATHDELIMITER);
+ const std::string dirname((last_delimiter == std::string::npos)? "." : _fileName.substr(0, last_delimiter));
+ const std::string filname((last_delimiter == std::string::npos)? _fileName : _fileName.substr(last_delimiter+1, _fileName.size()-last_delimiter-1));
+ int logFilesCount(0);
+#ifndef WIN32 // only available on Win32
+ struct dirent **entries;
+ int nentries = scandir(dirname.c_str(), &entries, 0, alphasort);
+ if (nentries < 0)
+ return -1;
+ for (int i = 0; i < nentries; i++) {
+ if (strstr(entries[i]->d_name, filname.c_str())) {
+ ++logFilesCount;
+ }
+ free(entries[i]);
+ }
+ free(entries);
+#else
+ HANDLE hFind = INVALID_HANDLE_VALUE;
+ WIN32_FIND_DATA ffd;
+ const std::string pattern = _fileName + "*";
+
+ hFind = FindFirstFile(pattern.c_str(), &ffd);
+ if (hFind != INVALID_HANDLE_VALUE) {
+ do {
+ if (!(ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) {
+ ++logFilesCount;
+ }
+ } while (FindNextFile(hFind, &ffd) != 0);
+ FindClose(hFind);
+ hFind = INVALID_HANDLE_VALUE;
+ }
+#endif
+ if (logFilesCount > n) {
+ std::cerr << "Too many log files in the dir " << dirname << ": " << logFilesCount << std::endl;
+ } else {
+ std::cout << "Daily log files in the dir " << dirname << ": " << logFilesCount << std::endl;
+ }
+
+ return (logFilesCount <= n) ? 0 : -1;
+ }
+
+ int testDailyRollingFileAppenderChangeDateManualOnly() {
+ setupManualEntryLog();
+ return makeManualEntryLog();
+ }
+}
+
int main()
{
int res = testOnlyDailyRollingFileAppender();
if (!res)
res = testConfigDailyRollingFileAppender();
+// Note: this test changes system time. Run it only manually
+// if (!res)
+// res = OnlyManualTesting::testDailyRollingFileAppenderChangeDateManualOnly();
+
return res;
}
-----------------------------------------------------------------------
Summary of changes:
src/DailyRollingFileAppender.cpp | 40 ++++----
tests/testDailyRollingFileAppender.cpp | 154 ++++++++++++++++++++++++++++++++
2 files changed, 174 insertions(+), 20 deletions(-)
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2016-10-26 05:48:50
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, master has been updated
via fe4ed077cd0bf6f5f45666c9ba93f8e9b509c7c6 (commit)
via 14babda4ecebcb6ded0938d21e255a82a93d2b34 (commit)
via c7d21d8d69248a47e8ef4df1e2f977591466fd0a (commit)
via 81786dddd1daf6ed2420e15c0fb142db627dad37 (commit)
via 79c3124043356971367fb13e1abb8f542972e944 (commit)
via 544f6a2c0e19c566abf39dab5a27201bff212d32 (commit)
from c209a977e66702678feda52cbf8b2125532d4799 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
-----------------------------------------------------------------------
Summary of changes:
include/log4cpp/Appender.hh | 2 +-
src/DailyRollingFileAppender.cpp | 6 +++---
src/PThreads.cpp | 19 ++++++++++++++++---
src/Properties.cpp | 6 +++---
src/RemoteSyslogAppender.cpp | 10 ++++++++--
tests/Clock.hh | 2 ++
tests/log4cpp.nt.property | 4 ++--
tests/log4cpp.property | 6 +++---
tests/testConfig.log4cpp.properties | 8 ++++----
9 files changed, 42 insertions(+), 21 deletions(-)
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2016-10-21 07:01:55
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, log4cpp-patch-45 has been updated
via fe4ed077cd0bf6f5f45666c9ba93f8e9b509c7c6 (commit)
via 14babda4ecebcb6ded0938d21e255a82a93d2b34 (commit)
from c7d21d8d69248a47e8ef4df1e2f977591466fd0a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit c209a977e66702678feda52cbf8b2125532d4799
Author: Alexander Perepelkin <san...@us...>
Date: Tue Aug 2 22:43:45 2016 +0400
bug-141: conservative fix
diff --git a/src/PropertyConfiguratorImpl.cpp b/src/PropertyConfiguratorImpl.cpp
index d9fec49..a8db7c9 100644
--- a/src/PropertyConfiguratorImpl.cpp
+++ b/src/PropertyConfiguratorImpl.cpp
@@ -166,7 +166,12 @@ namespace log4cpp {
}
}
- category.setPriority(priority);
+ try {
+ category.setPriority(priority);
+ } catch (std::invalid_argument& e) {
+ throw ConfigureFailure(std::string(e.what()) +
+ " for category '" + categoryName + "'");
+ }
bool additive = _properties.getBool("additivity." + categoryName, true);
category.setAdditivity(additive);
http://sourceforge.net/p/log4cpp/codegit/ci/
commit c209a977e66702678feda52cbf8b2125532d4799
Author: Alexander Perepelkin <san...@us...>
Date: Tue Aug 2 22:43:45 2016 +0400
bug-141: conservative fix
diff --git a/src/PropertyConfiguratorImpl.cpp b/src/PropertyConfiguratorImpl.cpp
index d9fec49..a8db7c9 100644
--- a/src/PropertyConfiguratorImpl.cpp
+++ b/src/PropertyConfiguratorImpl.cpp
@@ -166,7 +166,12 @@ namespace log4cpp {
}
}
- category.setPriority(priority);
+ try {
+ category.setPriority(priority);
+ } catch (std::invalid_argument& e) {
+ throw ConfigureFailure(std::string(e.what()) +
+ " for category '" + categoryName + "'");
+ }
bool additive = _properties.getBool("additivity." + categoryName, true);
category.setAdditivity(additive);
-----------------------------------------------------------------------
Summary of changes:
src/RemoteSyslogAppender.cpp | 10 ++++++++--
tests/Clock.hh | 2 ++
2 files changed, 10 insertions(+), 2 deletions(-)
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2016-10-18 20:22:44
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, log4cpp-patch-45 has been updated
via c7d21d8d69248a47e8ef4df1e2f977591466fd0a (commit)
from 81786dddd1daf6ed2420e15c0fb142db627dad37 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit c209a977e66702678feda52cbf8b2125532d4799
Author: Alexander Perepelkin <san...@us...>
Date: Tue Aug 2 22:43:45 2016 +0400
bug-141: conservative fix
diff --git a/src/PropertyConfiguratorImpl.cpp b/src/PropertyConfiguratorImpl.cpp
index d9fec49..a8db7c9 100644
--- a/src/PropertyConfiguratorImpl.cpp
+++ b/src/PropertyConfiguratorImpl.cpp
@@ -166,7 +166,12 @@ namespace log4cpp {
}
}
- category.setPriority(priority);
+ try {
+ category.setPriority(priority);
+ } catch (std::invalid_argument& e) {
+ throw ConfigureFailure(std::string(e.what()) +
+ " for category '" + categoryName + "'");
+ }
bool additive = _properties.getBool("additivity." + categoryName, true);
category.setAdditivity(additive);
-----------------------------------------------------------------------
Summary of changes:
include/log4cpp/Appender.hh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2016-10-18 19:38:34
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, log4cpp-patch-45 has been updated
via 81786dddd1daf6ed2420e15c0fb142db627dad37 (commit)
via 79c3124043356971367fb13e1abb8f542972e944 (commit)
from 544f6a2c0e19c566abf39dab5a27201bff212d32 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit c209a977e66702678feda52cbf8b2125532d4799
Author: Alexander Perepelkin <san...@us...>
Date: Tue Aug 2 22:43:45 2016 +0400
bug-141: conservative fix
diff --git a/src/PropertyConfiguratorImpl.cpp b/src/PropertyConfiguratorImpl.cpp
index d9fec49..a8db7c9 100644
--- a/src/PropertyConfiguratorImpl.cpp
+++ b/src/PropertyConfiguratorImpl.cpp
@@ -166,7 +166,12 @@ namespace log4cpp {
}
}
- category.setPriority(priority);
+ try {
+ category.setPriority(priority);
+ } catch (std::invalid_argument& e) {
+ throw ConfigureFailure(std::string(e.what()) +
+ " for category '" + categoryName + "'");
+ }
bool additive = _properties.getBool("additivity." + categoryName, true);
category.setAdditivity(additive);
http://sourceforge.net/p/log4cpp/codegit/ci/
commit c209a977e66702678feda52cbf8b2125532d4799
Author: Alexander Perepelkin <san...@us...>
Date: Tue Aug 2 22:43:45 2016 +0400
bug-141: conservative fix
diff --git a/src/PropertyConfiguratorImpl.cpp b/src/PropertyConfiguratorImpl.cpp
index d9fec49..a8db7c9 100644
--- a/src/PropertyConfiguratorImpl.cpp
+++ b/src/PropertyConfiguratorImpl.cpp
@@ -166,7 +166,12 @@ namespace log4cpp {
}
}
- category.setPriority(priority);
+ try {
+ category.setPriority(priority);
+ } catch (std::invalid_argument& e) {
+ throw ConfigureFailure(std::string(e.what()) +
+ " for category '" + categoryName + "'");
+ }
bool additive = _properties.getBool("additivity." + categoryName, true);
category.setAdditivity(additive);
-----------------------------------------------------------------------
Summary of changes:
src/PThreads.cpp | 1 -
src/Properties.cpp | 6 +++---
2 files changed, 3 insertions(+), 4 deletions(-)
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2016-10-16 19:54:40
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, log4cpp-patch-45 has been created
at 544f6a2c0e19c566abf39dab5a27201bff212d32 (commit)
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit c209a977e66702678feda52cbf8b2125532d4799
Author: Alexander Perepelkin <san...@us...>
Date: Tue Aug 2 22:43:45 2016 +0400
bug-141: conservative fix
diff --git a/src/PropertyConfiguratorImpl.cpp b/src/PropertyConfiguratorImpl.cpp
index d9fec49..a8db7c9 100644
--- a/src/PropertyConfiguratorImpl.cpp
+++ b/src/PropertyConfiguratorImpl.cpp
@@ -166,7 +166,12 @@ namespace log4cpp {
}
}
- category.setPriority(priority);
+ try {
+ category.setPriority(priority);
+ } catch (std::invalid_argument& e) {
+ throw ConfigureFailure(std::string(e.what()) +
+ " for category '" + categoryName + "'");
+ }
bool additive = _properties.getBool("additivity." + categoryName, true);
category.setAdditivity(additive);
-----------------------------------------------------------------------
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2016-08-02 18:47:53
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, master has been updated
via c209a977e66702678feda52cbf8b2125532d4799 (commit)
via 130218667ec028c74906b1e9448972e64128d69a (commit)
via d5b7452328bcd9a546188b95229f5fd958c5d6ba (commit)
from 1538197ad8a0c65e63c42d4a63cdadf00982c747 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit c209a977e66702678feda52cbf8b2125532d4799
Author: Alexander Perepelkin <san...@us...>
Date: Tue Aug 2 22:43:45 2016 +0400
bug-141: conservative fix
diff --git a/src/PropertyConfiguratorImpl.cpp b/src/PropertyConfiguratorImpl.cpp
index d9fec49..a8db7c9 100644
--- a/src/PropertyConfiguratorImpl.cpp
+++ b/src/PropertyConfiguratorImpl.cpp
@@ -166,7 +166,12 @@ namespace log4cpp {
}
}
- category.setPriority(priority);
+ try {
+ category.setPriority(priority);
+ } catch (std::invalid_argument& e) {
+ throw ConfigureFailure(std::string(e.what()) +
+ " for category '" + categoryName + "'");
+ }
bool additive = _properties.getBool("additivity." + categoryName, true);
category.setAdditivity(additive);
http://sourceforge.net/p/log4cpp/codegit/ci/
commit c209a977e66702678feda52cbf8b2125532d4799
Author: Alexander Perepelkin <san...@us...>
Date: Tue Aug 2 22:43:45 2016 +0400
bug-141: conservative fix
diff --git a/src/PropertyConfiguratorImpl.cpp b/src/PropertyConfiguratorImpl.cpp
index d9fec49..a8db7c9 100644
--- a/src/PropertyConfiguratorImpl.cpp
+++ b/src/PropertyConfiguratorImpl.cpp
@@ -166,7 +166,12 @@ namespace log4cpp {
}
}
- category.setPriority(priority);
+ try {
+ category.setPriority(priority);
+ } catch (std::invalid_argument& e) {
+ throw ConfigureFailure(std::string(e.what()) +
+ " for category '" + categoryName + "'");
+ }
bool additive = _properties.getBool("additivity." + categoryName, true);
category.setAdditivity(additive);
http://sourceforge.net/p/log4cpp/codegit/ci/
commit c209a977e66702678feda52cbf8b2125532d4799
Author: Alexander Perepelkin <san...@us...>
Date: Tue Aug 2 22:43:45 2016 +0400
bug-141: conservative fix
diff --git a/src/PropertyConfiguratorImpl.cpp b/src/PropertyConfiguratorImpl.cpp
index d9fec49..a8db7c9 100644
--- a/src/PropertyConfiguratorImpl.cpp
+++ b/src/PropertyConfiguratorImpl.cpp
@@ -166,7 +166,12 @@ namespace log4cpp {
}
}
- category.setPriority(priority);
+ try {
+ category.setPriority(priority);
+ } catch (std::invalid_argument& e) {
+ throw ConfigureFailure(std::string(e.what()) +
+ " for category '" + categoryName + "'");
+ }
bool additive = _properties.getBool("additivity." + categoryName, true);
category.setAdditivity(additive);
-----------------------------------------------------------------------
Summary of changes:
src/PatternLayout.cpp | 3 +++
src/PropertyConfiguratorImpl.cpp | 7 ++++++-
src/RollingFileAppender.cpp | 2 +-
3 files changed, 10 insertions(+), 2 deletions(-)
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2016-04-29 07:28:06
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, master has been updated
via 1538197ad8a0c65e63c42d4a63cdadf00982c747 (commit)
via 4aaf87069b87147c293c92a99c9e5c89edf7652b (commit)
via 1871fa7ad9f4fd32ce2136ad46c09ef155bdba17 (commit)
from e036c02e9c95ec06425d0903a86518a87b8f7408 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit 1538197ad8a0c65e63c42d4a63cdadf00982c747
Merge: e036c02 4aaf870
Author: Alexander Perepelkin <san...@us...>
Date: Fri Apr 29 11:14:20 2016 +0400
Merge branch 'bug-139-mem-leaks-alltogether' of ssh://git.code.sf.net/p/log4cpp/codegit
diff --cc tests/log4cpp.nt.property
index 2bfbb22,0aa3f8d..e12b6a2
--- a/tests/log4cpp.nt.property
+++ b/tests/log4cpp.nt.property
@@@ -21,22 -21,10 +21,22 @@@ log4cpp.appender.A2.layout.ConversionPa
log4cpp.appender.A3=RollingFileAppender
log4cpp.appender.A3.fileName=A3.log
log4cpp.appender.A3.maxFileSize=80
- log4cpp.appender.A3.maxBackupIndex=1
+ log4cpp.appender.A3.maxBackupIndex=2
log4cpp.appender.A3.layout=PatternLayout
- log4cpp.appender.A3.layout.ConversionPattern=The message %m at time %d{%H:%M}%n
+ log4cpp.appender.A3.layout.ConversionPattern=The message %m at time %d{%H:%M:%S,%l}%n
+log4cpp.appender.stderrAppender=ConsoleAppender
+log4cpp.appender.stderrAppender.layout=PatternLayout
+log4cpp.appender.stderrAppender.layout.ConversionPattern=stderr: %m%n
+log4cpp.appender.stderrAppender.target=stdErr
+log4cpp.appender.stderrAppender.threshold=ERROR
+
+log4cpp.appender.stdoutAppender=ConsoleAppender
+log4cpp.appender.stdoutAppender.layout=PatternLayout
+log4cpp.appender.stdoutAppender.layout.ConversionPattern=stdout: %m%n
+log4cpp.appender.stdoutAppender.target=StdOut
+log4cpp.appender.stdoutAppender.threshold=ERROR
+
log4cpp.category.subNT=INFO, subNT
log4cpp.appender.subNT=NTEventLogAppender
log4cpp.appender.subNT.source=log4cpp-test
-----------------------------------------------------------------------
Summary of changes:
include/log4cpp/Appender.hh | 27 ++++-
include/log4cpp/Category.hh | 6 +
include/log4cpp/Portability.hh | 16 +++
.../log4cppRunnable.vcxproj} | 39 +++++--
msvc10/msvc10.sln | 128 +++++++++++---------
msvc10/testPropConfig/testPropConfig.vcxproj | 6 +-
src/Appender.cpp | 76 +++++++++---
src/Category.cpp | 6 +
src/HierarchyMaintainer.cpp | 2 +
src/PropertyConfigurator.cpp | 2 +-
tests/log4cpp.nt.property | 4 +-
tests/testPropConfig.cpp | 46 +++++--
12 files changed, 250 insertions(+), 108 deletions(-)
copy msvc10/{log4cpp/log4cpp.vcxproj => log4cppRunnable/log4cppRunnable.vcxproj} (93%)
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2016-04-29 07:05:34
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, bug-139-mem-leaks-alltogether has been updated
via 4aaf87069b87147c293c92a99c9e5c89edf7652b (commit)
from 1871fa7ad9f4fd32ce2136ad46c09ef155bdba17 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit e036c02e9c95ec06425d0903a86518a87b8f7408
Author: Alexander Perepelkin <san...@sf...>
Date: Wed Apr 27 18:27:09 2016 +0300
Add configuration targets into tests for ConsoleAppender
diff --git a/tests/log4cpp.nt.property b/tests/log4cpp.nt.property
index 153aa8f..2bfbb22 100644
--- a/tests/log4cpp.nt.property
+++ b/tests/log4cpp.nt.property
@@ -1,7 +1,7 @@
# property configurator test file
log4cpp.rootCategory=DEBUG, rootAppender
-log4cpp.category.sub1=DEBUG, A1, A2
+log4cpp.category.sub1=DEBUG, A1, A2, stderrAppender, stdoutAppender
log4cpp.category.sub1.sub2=DEBUG, A3
log4cpp.appender.rootAppender=ConsoleAppender
@@ -25,6 +25,18 @@ log4cpp.appender.A3.maxBackupIndex=1
log4cpp.appender.A3.layout=PatternLayout
log4cpp.appender.A3.layout.ConversionPattern=The message %m at time %d{%H:%M}%n
+log4cpp.appender.stderrAppender=ConsoleAppender
+log4cpp.appender.stderrAppender.layout=PatternLayout
+log4cpp.appender.stderrAppender.layout.ConversionPattern=stderr: %m%n
+log4cpp.appender.stderrAppender.target=stdErr
+log4cpp.appender.stderrAppender.threshold=ERROR
+
+log4cpp.appender.stdoutAppender=ConsoleAppender
+log4cpp.appender.stdoutAppender.layout=PatternLayout
+log4cpp.appender.stdoutAppender.layout.ConversionPattern=stdout: %m%n
+log4cpp.appender.stdoutAppender.target=StdOut
+log4cpp.appender.stdoutAppender.threshold=ERROR
+
log4cpp.category.subNT=INFO, subNT
log4cpp.appender.subNT=NTEventLogAppender
log4cpp.appender.subNT.source=log4cpp-test
diff --git a/tests/log4cpp.property b/tests/log4cpp.property
index 8ba1c3b..94e5eab 100644
--- a/tests/log4cpp.property
+++ b/tests/log4cpp.property
@@ -1,7 +1,7 @@
# property configurator test file
log4cpp.rootCategory=DEBUG, rootAppender
-log4cpp.category.sub1=DEBUG, A1, A2
+log4cpp.category.sub1=DEBUG, A1, A2, stderrAppender, stdoutAppender
log4cpp.category.sub1.sub2=DEBUG, A3
log4cpp.appender.rootAppender=ConsoleAppender
@@ -25,3 +25,14 @@ log4cpp.appender.A3.maxBackupIndex=1
log4cpp.appender.A3.layout=PatternLayout
log4cpp.appender.A3.layout.ConversionPattern=The message %m at time %d{%H:%M}%n
+log4cpp.appender.stderrAppender=ConsoleAppender
+log4cpp.appender.stderrAppender.layout=PatternLayout
+log4cpp.appender.stderrAppender.layout.ConversionPattern=stderr: %m%n
+log4cpp.appender.stderrAppender.target=stdErr
+log4cpp.appender.stderrAppender.threshold=ERROR
+
+log4cpp.appender.stdoutAppender=ConsoleAppender
+log4cpp.appender.stdoutAppender.layout=PatternLayout
+log4cpp.appender.stdoutAppender.layout.ConversionPattern=stdout: %m%n
+log4cpp.appender.stdoutAppender.target=StdOut
+log4cpp.appender.stdoutAppender.threshold=ERROR
-----------------------------------------------------------------------
Summary of changes:
include/log4cpp/Appender.hh | 1 -
msvc10/log4cppRunnable/log4cppRunnable.vcxproj | 6 +-
msvc10/msvc10.sln | 118 ++++++++++++------------
msvc10/testPropConfig/testPropConfig.vcxproj | 2 +-
4 files changed, 63 insertions(+), 64 deletions(-)
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2016-04-27 19:23:31
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, bug-139-mem-leaks-alltogether has been created
at 1871fa7ad9f4fd32ce2136ad46c09ef155bdba17 (commit)
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit e036c02e9c95ec06425d0903a86518a87b8f7408
Author: Alexander Perepelkin <san...@sf...>
Date: Wed Apr 27 18:27:09 2016 +0300
Add configuration targets into tests for ConsoleAppender
diff --git a/tests/log4cpp.nt.property b/tests/log4cpp.nt.property
index 153aa8f..2bfbb22 100644
--- a/tests/log4cpp.nt.property
+++ b/tests/log4cpp.nt.property
@@ -1,7 +1,7 @@
# property configurator test file
log4cpp.rootCategory=DEBUG, rootAppender
-log4cpp.category.sub1=DEBUG, A1, A2
+log4cpp.category.sub1=DEBUG, A1, A2, stderrAppender, stdoutAppender
log4cpp.category.sub1.sub2=DEBUG, A3
log4cpp.appender.rootAppender=ConsoleAppender
@@ -25,6 +25,18 @@ log4cpp.appender.A3.maxBackupIndex=1
log4cpp.appender.A3.layout=PatternLayout
log4cpp.appender.A3.layout.ConversionPattern=The message %m at time %d{%H:%M}%n
+log4cpp.appender.stderrAppender=ConsoleAppender
+log4cpp.appender.stderrAppender.layout=PatternLayout
+log4cpp.appender.stderrAppender.layout.ConversionPattern=stderr: %m%n
+log4cpp.appender.stderrAppender.target=stdErr
+log4cpp.appender.stderrAppender.threshold=ERROR
+
+log4cpp.appender.stdoutAppender=ConsoleAppender
+log4cpp.appender.stdoutAppender.layout=PatternLayout
+log4cpp.appender.stdoutAppender.layout.ConversionPattern=stdout: %m%n
+log4cpp.appender.stdoutAppender.target=StdOut
+log4cpp.appender.stdoutAppender.threshold=ERROR
+
log4cpp.category.subNT=INFO, subNT
log4cpp.appender.subNT=NTEventLogAppender
log4cpp.appender.subNT.source=log4cpp-test
diff --git a/tests/log4cpp.property b/tests/log4cpp.property
index 8ba1c3b..94e5eab 100644
--- a/tests/log4cpp.property
+++ b/tests/log4cpp.property
@@ -1,7 +1,7 @@
# property configurator test file
log4cpp.rootCategory=DEBUG, rootAppender
-log4cpp.category.sub1=DEBUG, A1, A2
+log4cpp.category.sub1=DEBUG, A1, A2, stderrAppender, stdoutAppender
log4cpp.category.sub1.sub2=DEBUG, A3
log4cpp.appender.rootAppender=ConsoleAppender
@@ -25,3 +25,14 @@ log4cpp.appender.A3.maxBackupIndex=1
log4cpp.appender.A3.layout=PatternLayout
log4cpp.appender.A3.layout.ConversionPattern=The message %m at time %d{%H:%M}%n
+log4cpp.appender.stderrAppender=ConsoleAppender
+log4cpp.appender.stderrAppender.layout=PatternLayout
+log4cpp.appender.stderrAppender.layout.ConversionPattern=stderr: %m%n
+log4cpp.appender.stderrAppender.target=stdErr
+log4cpp.appender.stderrAppender.threshold=ERROR
+
+log4cpp.appender.stdoutAppender=ConsoleAppender
+log4cpp.appender.stdoutAppender.layout=PatternLayout
+log4cpp.appender.stdoutAppender.layout.ConversionPattern=stdout: %m%n
+log4cpp.appender.stdoutAppender.target=StdOut
+log4cpp.appender.stdoutAppender.threshold=ERROR
-----------------------------------------------------------------------
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2016-04-27 19:01:09
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, bug-139-mem-leaks has been updated
via 89626e9e9cdfd9e9faac394b227516a981412aa2 (commit)
from e61cd015e59e5a5e0a9993dce18cba5fa3fa2341 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit e036c02e9c95ec06425d0903a86518a87b8f7408
Author: Alexander Perepelkin <san...@sf...>
Date: Wed Apr 27 18:27:09 2016 +0300
Add configuration targets into tests for ConsoleAppender
diff --git a/tests/log4cpp.nt.property b/tests/log4cpp.nt.property
index 153aa8f..2bfbb22 100644
--- a/tests/log4cpp.nt.property
+++ b/tests/log4cpp.nt.property
@@ -1,7 +1,7 @@
# property configurator test file
log4cpp.rootCategory=DEBUG, rootAppender
-log4cpp.category.sub1=DEBUG, A1, A2
+log4cpp.category.sub1=DEBUG, A1, A2, stderrAppender, stdoutAppender
log4cpp.category.sub1.sub2=DEBUG, A3
log4cpp.appender.rootAppender=ConsoleAppender
@@ -25,6 +25,18 @@ log4cpp.appender.A3.maxBackupIndex=1
log4cpp.appender.A3.layout=PatternLayout
log4cpp.appender.A3.layout.ConversionPattern=The message %m at time %d{%H:%M}%n
+log4cpp.appender.stderrAppender=ConsoleAppender
+log4cpp.appender.stderrAppender.layout=PatternLayout
+log4cpp.appender.stderrAppender.layout.ConversionPattern=stderr: %m%n
+log4cpp.appender.stderrAppender.target=stdErr
+log4cpp.appender.stderrAppender.threshold=ERROR
+
+log4cpp.appender.stdoutAppender=ConsoleAppender
+log4cpp.appender.stdoutAppender.layout=PatternLayout
+log4cpp.appender.stdoutAppender.layout.ConversionPattern=stdout: %m%n
+log4cpp.appender.stdoutAppender.target=StdOut
+log4cpp.appender.stdoutAppender.threshold=ERROR
+
log4cpp.category.subNT=INFO, subNT
log4cpp.appender.subNT=NTEventLogAppender
log4cpp.appender.subNT.source=log4cpp-test
diff --git a/tests/log4cpp.property b/tests/log4cpp.property
index 8ba1c3b..94e5eab 100644
--- a/tests/log4cpp.property
+++ b/tests/log4cpp.property
@@ -1,7 +1,7 @@
# property configurator test file
log4cpp.rootCategory=DEBUG, rootAppender
-log4cpp.category.sub1=DEBUG, A1, A2
+log4cpp.category.sub1=DEBUG, A1, A2, stderrAppender, stdoutAppender
log4cpp.category.sub1.sub2=DEBUG, A3
log4cpp.appender.rootAppender=ConsoleAppender
@@ -25,3 +25,14 @@ log4cpp.appender.A3.maxBackupIndex=1
log4cpp.appender.A3.layout=PatternLayout
log4cpp.appender.A3.layout.ConversionPattern=The message %m at time %d{%H:%M}%n
+log4cpp.appender.stderrAppender=ConsoleAppender
+log4cpp.appender.stderrAppender.layout=PatternLayout
+log4cpp.appender.stderrAppender.layout.ConversionPattern=stderr: %m%n
+log4cpp.appender.stderrAppender.target=stdErr
+log4cpp.appender.stderrAppender.threshold=ERROR
+
+log4cpp.appender.stdoutAppender=ConsoleAppender
+log4cpp.appender.stdoutAppender.layout=PatternLayout
+log4cpp.appender.stdoutAppender.layout.ConversionPattern=stdout: %m%n
+log4cpp.appender.stdoutAppender.target=StdOut
+log4cpp.appender.stdoutAppender.threshold=ERROR
-----------------------------------------------------------------------
Summary of changes:
.../log4cppRunnable.vcxproj} | 33 +++++++++++++++-----
1 files changed, 25 insertions(+), 8 deletions(-)
copy msvc10/{log4cpp/log4cpp.vcxproj => log4cppRunnable/log4cppRunnable.vcxproj} (93%)
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2016-04-27 18:44:10
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, bug-139-mem-leaks has been updated
via e61cd015e59e5a5e0a9993dce18cba5fa3fa2341 (commit)
from f44ec2cb1a208df34bd5b758ff1d2b061487b070 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit e036c02e9c95ec06425d0903a86518a87b8f7408
Author: Alexander Perepelkin <san...@sf...>
Date: Wed Apr 27 18:27:09 2016 +0300
Add configuration targets into tests for ConsoleAppender
diff --git a/tests/log4cpp.nt.property b/tests/log4cpp.nt.property
index 153aa8f..2bfbb22 100644
--- a/tests/log4cpp.nt.property
+++ b/tests/log4cpp.nt.property
@@ -1,7 +1,7 @@
# property configurator test file
log4cpp.rootCategory=DEBUG, rootAppender
-log4cpp.category.sub1=DEBUG, A1, A2
+log4cpp.category.sub1=DEBUG, A1, A2, stderrAppender, stdoutAppender
log4cpp.category.sub1.sub2=DEBUG, A3
log4cpp.appender.rootAppender=ConsoleAppender
@@ -25,6 +25,18 @@ log4cpp.appender.A3.maxBackupIndex=1
log4cpp.appender.A3.layout=PatternLayout
log4cpp.appender.A3.layout.ConversionPattern=The message %m at time %d{%H:%M}%n
+log4cpp.appender.stderrAppender=ConsoleAppender
+log4cpp.appender.stderrAppender.layout=PatternLayout
+log4cpp.appender.stderrAppender.layout.ConversionPattern=stderr: %m%n
+log4cpp.appender.stderrAppender.target=stdErr
+log4cpp.appender.stderrAppender.threshold=ERROR
+
+log4cpp.appender.stdoutAppender=ConsoleAppender
+log4cpp.appender.stdoutAppender.layout=PatternLayout
+log4cpp.appender.stdoutAppender.layout.ConversionPattern=stdout: %m%n
+log4cpp.appender.stdoutAppender.target=StdOut
+log4cpp.appender.stdoutAppender.threshold=ERROR
+
log4cpp.category.subNT=INFO, subNT
log4cpp.appender.subNT=NTEventLogAppender
log4cpp.appender.subNT.source=log4cpp-test
diff --git a/tests/log4cpp.property b/tests/log4cpp.property
index 8ba1c3b..94e5eab 100644
--- a/tests/log4cpp.property
+++ b/tests/log4cpp.property
@@ -1,7 +1,7 @@
# property configurator test file
log4cpp.rootCategory=DEBUG, rootAppender
-log4cpp.category.sub1=DEBUG, A1, A2
+log4cpp.category.sub1=DEBUG, A1, A2, stderrAppender, stdoutAppender
log4cpp.category.sub1.sub2=DEBUG, A3
log4cpp.appender.rootAppender=ConsoleAppender
@@ -25,3 +25,14 @@ log4cpp.appender.A3.maxBackupIndex=1
log4cpp.appender.A3.layout=PatternLayout
log4cpp.appender.A3.layout.ConversionPattern=The message %m at time %d{%H:%M}%n
+log4cpp.appender.stderrAppender=ConsoleAppender
+log4cpp.appender.stderrAppender.layout=PatternLayout
+log4cpp.appender.stderrAppender.layout.ConversionPattern=stderr: %m%n
+log4cpp.appender.stderrAppender.target=stdErr
+log4cpp.appender.stderrAppender.threshold=ERROR
+
+log4cpp.appender.stdoutAppender=ConsoleAppender
+log4cpp.appender.stdoutAppender.layout=PatternLayout
+log4cpp.appender.stdoutAppender.layout.ConversionPattern=stdout: %m%n
+log4cpp.appender.stdoutAppender.target=StdOut
+log4cpp.appender.stdoutAppender.threshold=ERROR
-----------------------------------------------------------------------
Summary of changes:
include/log4cpp/Appender.hh | 3 +-
include/log4cpp/Category.hh | 2 +-
include/log4cpp/Portability.hh | 15 +++
msvc10/msvc10.sln | 128 ++++++++++++++------------
msvc10/testPropConfig/testPropConfig.vcxproj | 6 +-
src/Appender.cpp | 39 ++++++--
tests/testPropConfig.cpp | 9 ++-
7 files changed, 127 insertions(+), 75 deletions(-)
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2016-04-27 15:27:39
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, master has been updated
via e036c02e9c95ec06425d0903a86518a87b8f7408 (commit)
via f416754ee4cb63e1e92c23cf042de63e6fc31d19 (commit)
from 167907b4851fddaa442b6627d5572a42cc97a8e1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit e036c02e9c95ec06425d0903a86518a87b8f7408
Author: Alexander Perepelkin <san...@sf...>
Date: Wed Apr 27 18:27:09 2016 +0300
Add configuration targets into tests for ConsoleAppender
diff --git a/tests/log4cpp.nt.property b/tests/log4cpp.nt.property
index 153aa8f..2bfbb22 100644
--- a/tests/log4cpp.nt.property
+++ b/tests/log4cpp.nt.property
@@ -1,7 +1,7 @@
# property configurator test file
log4cpp.rootCategory=DEBUG, rootAppender
-log4cpp.category.sub1=DEBUG, A1, A2
+log4cpp.category.sub1=DEBUG, A1, A2, stderrAppender, stdoutAppender
log4cpp.category.sub1.sub2=DEBUG, A3
log4cpp.appender.rootAppender=ConsoleAppender
@@ -25,6 +25,18 @@ log4cpp.appender.A3.maxBackupIndex=1
log4cpp.appender.A3.layout=PatternLayout
log4cpp.appender.A3.layout.ConversionPattern=The message %m at time %d{%H:%M}%n
+log4cpp.appender.stderrAppender=ConsoleAppender
+log4cpp.appender.stderrAppender.layout=PatternLayout
+log4cpp.appender.stderrAppender.layout.ConversionPattern=stderr: %m%n
+log4cpp.appender.stderrAppender.target=stdErr
+log4cpp.appender.stderrAppender.threshold=ERROR
+
+log4cpp.appender.stdoutAppender=ConsoleAppender
+log4cpp.appender.stdoutAppender.layout=PatternLayout
+log4cpp.appender.stdoutAppender.layout.ConversionPattern=stdout: %m%n
+log4cpp.appender.stdoutAppender.target=StdOut
+log4cpp.appender.stdoutAppender.threshold=ERROR
+
log4cpp.category.subNT=INFO, subNT
log4cpp.appender.subNT=NTEventLogAppender
log4cpp.appender.subNT.source=log4cpp-test
diff --git a/tests/log4cpp.property b/tests/log4cpp.property
index 8ba1c3b..94e5eab 100644
--- a/tests/log4cpp.property
+++ b/tests/log4cpp.property
@@ -1,7 +1,7 @@
# property configurator test file
log4cpp.rootCategory=DEBUG, rootAppender
-log4cpp.category.sub1=DEBUG, A1, A2
+log4cpp.category.sub1=DEBUG, A1, A2, stderrAppender, stdoutAppender
log4cpp.category.sub1.sub2=DEBUG, A3
log4cpp.appender.rootAppender=ConsoleAppender
@@ -25,3 +25,14 @@ log4cpp.appender.A3.maxBackupIndex=1
log4cpp.appender.A3.layout=PatternLayout
log4cpp.appender.A3.layout.ConversionPattern=The message %m at time %d{%H:%M}%n
+log4cpp.appender.stderrAppender=ConsoleAppender
+log4cpp.appender.stderrAppender.layout=PatternLayout
+log4cpp.appender.stderrAppender.layout.ConversionPattern=stderr: %m%n
+log4cpp.appender.stderrAppender.target=stdErr
+log4cpp.appender.stderrAppender.threshold=ERROR
+
+log4cpp.appender.stdoutAppender=ConsoleAppender
+log4cpp.appender.stdoutAppender.layout=PatternLayout
+log4cpp.appender.stdoutAppender.layout.ConversionPattern=stdout: %m%n
+log4cpp.appender.stdoutAppender.target=StdOut
+log4cpp.appender.stdoutAppender.threshold=ERROR
http://sourceforge.net/p/log4cpp/codegit/ci/
commit e036c02e9c95ec06425d0903a86518a87b8f7408
Author: Alexander Perepelkin <san...@sf...>
Date: Wed Apr 27 18:27:09 2016 +0300
Add configuration targets into tests for ConsoleAppender
diff --git a/tests/log4cpp.nt.property b/tests/log4cpp.nt.property
index 153aa8f..2bfbb22 100644
--- a/tests/log4cpp.nt.property
+++ b/tests/log4cpp.nt.property
@@ -1,7 +1,7 @@
# property configurator test file
log4cpp.rootCategory=DEBUG, rootAppender
-log4cpp.category.sub1=DEBUG, A1, A2
+log4cpp.category.sub1=DEBUG, A1, A2, stderrAppender, stdoutAppender
log4cpp.category.sub1.sub2=DEBUG, A3
log4cpp.appender.rootAppender=ConsoleAppender
@@ -25,6 +25,18 @@ log4cpp.appender.A3.maxBackupIndex=1
log4cpp.appender.A3.layout=PatternLayout
log4cpp.appender.A3.layout.ConversionPattern=The message %m at time %d{%H:%M}%n
+log4cpp.appender.stderrAppender=ConsoleAppender
+log4cpp.appender.stderrAppender.layout=PatternLayout
+log4cpp.appender.stderrAppender.layout.ConversionPattern=stderr: %m%n
+log4cpp.appender.stderrAppender.target=stdErr
+log4cpp.appender.stderrAppender.threshold=ERROR
+
+log4cpp.appender.stdoutAppender=ConsoleAppender
+log4cpp.appender.stdoutAppender.layout=PatternLayout
+log4cpp.appender.stdoutAppender.layout.ConversionPattern=stdout: %m%n
+log4cpp.appender.stdoutAppender.target=StdOut
+log4cpp.appender.stdoutAppender.threshold=ERROR
+
log4cpp.category.subNT=INFO, subNT
log4cpp.appender.subNT=NTEventLogAppender
log4cpp.appender.subNT.source=log4cpp-test
diff --git a/tests/log4cpp.property b/tests/log4cpp.property
index 8ba1c3b..94e5eab 100644
--- a/tests/log4cpp.property
+++ b/tests/log4cpp.property
@@ -1,7 +1,7 @@
# property configurator test file
log4cpp.rootCategory=DEBUG, rootAppender
-log4cpp.category.sub1=DEBUG, A1, A2
+log4cpp.category.sub1=DEBUG, A1, A2, stderrAppender, stdoutAppender
log4cpp.category.sub1.sub2=DEBUG, A3
log4cpp.appender.rootAppender=ConsoleAppender
@@ -25,3 +25,14 @@ log4cpp.appender.A3.maxBackupIndex=1
log4cpp.appender.A3.layout=PatternLayout
log4cpp.appender.A3.layout.ConversionPattern=The message %m at time %d{%H:%M}%n
+log4cpp.appender.stderrAppender=ConsoleAppender
+log4cpp.appender.stderrAppender.layout=PatternLayout
+log4cpp.appender.stderrAppender.layout.ConversionPattern=stderr: %m%n
+log4cpp.appender.stderrAppender.target=stdErr
+log4cpp.appender.stderrAppender.threshold=ERROR
+
+log4cpp.appender.stdoutAppender=ConsoleAppender
+log4cpp.appender.stdoutAppender.layout=PatternLayout
+log4cpp.appender.stdoutAppender.layout.ConversionPattern=stdout: %m%n
+log4cpp.appender.stdoutAppender.target=StdOut
+log4cpp.appender.stdoutAppender.threshold=ERROR
-----------------------------------------------------------------------
Summary of changes:
src/PropertyConfiguratorImpl.cpp | 13 ++++++++++++-
tests/log4cpp.nt.property | 14 +++++++++++++-
tests/log4cpp.property | 13 ++++++++++++-
3 files changed, 37 insertions(+), 3 deletions(-)
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2016-01-05 09:11:43
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, bug-139-mem-leaks has been updated
via f44ec2cb1a208df34bd5b758ff1d2b061487b070 (commit)
from 1b472a4add5c78bbf91dbd7dafe698d6c9e40708 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit 167907b4851fddaa442b6627d5572a42cc97a8e1
Merge: d0a8e6c 5edecdd
Author: Alexander Perepelkin <san...@us...>
Date: Sat Apr 4 13:06:06 2015 +0400
Merge branch 'master' of ssh://git.code.sf.net/p/log4cpp/codegit
-----------------------------------------------------------------------
Summary of changes:
include/log4cpp/Category.hh | 3 +-
include/log4cpp/HierarchyMaintainer.hh | 1 -
include/log4cpp/Portability.hh | 12 ---------
src/Appender.cpp | 20 ++++------------
src/Category.cpp | 1 -
src/HierarchyMaintainer.cpp | 6 +----
tests/log4cpp.nt.property | 4 +-
tests/testPropConfig.cpp | 40 ++++++++++++++++---------------
8 files changed, 31 insertions(+), 56 deletions(-)
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2016-01-04 20:45:58
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, bug-139-mem-leaks has been created
at 1b472a4add5c78bbf91dbd7dafe698d6c9e40708 (commit)
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit 167907b4851fddaa442b6627d5572a42cc97a8e1
Merge: d0a8e6c 5edecdd
Author: Alexander Perepelkin <san...@us...>
Date: Sat Apr 4 13:06:06 2015 +0400
Merge branch 'master' of ssh://git.code.sf.net/p/log4cpp/codegit
-----------------------------------------------------------------------
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2015-04-04 09:06:49
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, master has been updated
via 167907b4851fddaa442b6627d5572a42cc97a8e1 (commit)
via d0a8e6cf90a228a6fc429e1b929b02342be8a5bb (commit)
from 5edecddcd97bffa53692affcab2a39e0dfbfc035 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit 167907b4851fddaa442b6627d5572a42cc97a8e1
Merge: d0a8e6c 5edecdd
Author: Alexander Perepelkin <san...@us...>
Date: Sat Apr 4 13:06:06 2015 +0400
Merge branch 'master' of ssh://git.code.sf.net/p/log4cpp/codegit
http://sourceforge.net/p/log4cpp/codegit/ci/
commit 167907b4851fddaa442b6627d5572a42cc97a8e1
Merge: d0a8e6c 5edecdd
Author: Alexander Perepelkin <san...@us...>
Date: Sat Apr 4 13:06:06 2015 +0400
Merge branch 'master' of ssh://git.code.sf.net/p/log4cpp/codegit
-----------------------------------------------------------------------
Summary of changes:
doc/html/index.html | 27 ++++++++++++++-------------
1 files changed, 14 insertions(+), 13 deletions(-)
hooks/post-receive
--
Log4cpp Git repository.
|
|
From: <log...@li...> - 2015-04-03 21:47:48
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Log4cpp Git repository.".
The branch, master has been updated
via 5edecddcd97bffa53692affcab2a39e0dfbfc035 (commit)
from 1d93139cc8d083d38d3ab832283b0a86c900a9e4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/log4cpp/codegit/ci/
commit 5edecddcd97bffa53692affcab2a39e0dfbfc035
Author: Alexander Perepelkin <san...@us...>
Date: Sat Apr 4 01:46:26 2015 +0400
DailyRollingFileAppender: add empty nested dirs
diff --git a/msvc10/testDailyRollingFileAppender/nesteddir/.gitignore b/msvc10/testDailyRollingFileAppender/nesteddir/.gitignore
new file mode 100644
index 0000000..6cc7404
--- /dev/null
+++ b/msvc10/testDailyRollingFileAppender/nesteddir/.gitignore
@@ -0,0 +1 @@
+*.log.*
diff --git a/tests/nesteddir/.gitignore b/tests/nesteddir/.gitignore
new file mode 100644
index 0000000..6cc7404
--- /dev/null
+++ b/tests/nesteddir/.gitignore
@@ -0,0 +1 @@
+*.log.*
-----------------------------------------------------------------------
Summary of changes:
.../nesteddir/.gitignore | 1 +
tests/nesteddir/.gitignore | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
create mode 100644 msvc10/testDailyRollingFileAppender/nesteddir/.gitignore
create mode 100644 tests/nesteddir/.gitignore
hooks/post-receive
--
Log4cpp Git repository.
|