Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] log4cplus: new package
@ 2013-11-07 21:27 Peter Seiderer
  2013-11-08  0:38 ` Arnout Vandecappelle
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Seiderer @ 2013-11-07 21:27 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
 package/Config.in              |  1 +
 package/log4cplus/Config.in    | 15 +++++++++++++++
 package/log4cplus/log4cplus.mk | 14 ++++++++++++++
 3 files changed, 30 insertions(+)
 create mode 100644 package/log4cplus/Config.in
 create mode 100644 package/log4cplus/log4cplus.mk

diff --git a/package/Config.in b/package/Config.in
index c0a3f20..7c0eb94 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -706,6 +706,7 @@ source "package/libtpl/Config.in"
 source "package/libunwind/Config.in"
 source "package/liburcu/Config.in"
 source "package/linux-pam/Config.in"
+source "package/log4cplus/Config.in"
 source "package/log4cxx/Config.in"
 source "package/lttng-libust/Config.in"
 source "package/mpc/Config.in"
diff --git a/package/log4cplus/Config.in b/package/log4cplus/Config.in
new file mode 100644
index 0000000..8a112a4
--- /dev/null
+++ b/package/log4cplus/Config.in
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_LOG4CPLUS
+	bool "log4cplus"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_USE_WCHAR
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	help
+	  log4cplus is a simple to use C++ logging API providing
+	  thread-safe, flexible, and arbitrarily granular control
+	  over log management and configuration. It is modelled
+	  after the Java log4j API.
+
+	  http://sourceforge.net/projects/log4cplus
+
+comment "log4cplus needs a toolchain w/ C++, wchar, threads"
+	depends on !(BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR && BR2_TOOLCHAIN_HAS_THREADS)
diff --git a/package/log4cplus/log4cplus.mk b/package/log4cplus/log4cplus.mk
new file mode 100644
index 0000000..292fa66
--- /dev/null
+++ b/package/log4cplus/log4cplus.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# log4cplus
+#
+################################################################################
+
+LOG4CPLUS_VERSION = 1.1.2
+LOG4CPLUS_SOURCE = log4cplus-$(LOG4CPLUS_VERSION).tar.xz
+LOG4CPLUS_SITE = http://downloads.sourceforge.net/project/log4cplus/log4cplus-stable/$(LOG4CPLUS_VERSION)
+LOG4CPLUS_LICENSE = Apache-2.0
+LOG4CPLUS_LICENSE_FILES = LICENSE
+LOG4CPLUS_INSTALL_STAGING = YES
+
+$(eval $(autotools-package))
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] log4cplus: new package
@ 2013-11-08 19:45 Peter Seiderer
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Seiderer @ 2013-11-08 19:45 UTC (permalink / raw)
  To: buildroot

Hello Arnout,

On Fri, Nov 08, 2013 at 01:38:36AM +0100, Arnout Vandecappelle wrote:
> On 07/11/13 22:27, Peter Seiderer wrote:
> >Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> 
> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

thank you very much...

> 
> >---
> >  package/Config.in              |  1 +
> >  package/log4cplus/Config.in    | 15 +++++++++++++++
> >  package/log4cplus/log4cplus.mk | 14 ++++++++++++++
> >  3 files changed, 30 insertions(+)
> >  create mode 100644 package/log4cplus/Config.in
> >  create mode 100644 package/log4cplus/log4cplus.mk
> >
> >diff --git a/package/Config.in b/package/Config.in
> >index c0a3f20..7c0eb94 100644
> >--- a/package/Config.in
> >+++ b/package/Config.in
> >@@ -706,6 +706,7 @@ source "package/libtpl/Config.in"
> >  source "package/libunwind/Config.in"
> >  source "package/liburcu/Config.in"
> >  source "package/linux-pam/Config.in"
> >+source "package/log4cplus/Config.in"
> >  source "package/log4cxx/Config.in"
> 
>  Does log4cplus replace log4cxx? The API looks a bit similar at first sight.

Yes, both try to implement log4j style.

log4cxx development seems to be stalled (latest release 0.10.0 from 2008-04-03, release 0.11.0
(many bug fixes) announced for 2010..., see http://logging.apache.org/log4cxx/changes-report.html

log4cplus is more selfcontained (no dependencies like log4cxx on apr/apr-util), see
http://sourceforge.net/p/log4cplus/wiki/Home

'The aim of this project is to develop log4j-like logging framework for use in (primarily) C++.
 One of the major design goals is to avoid huge dependencies (like Boost) in the core functionality
 and to use as standard C++ facilities instead.'

And log4cplus is much smaller:

276K    target/usr/lib/liblog4cplus-1.1.so.9.0.0

vs.

1.3M    target/usr/lib/liblog4cxx.so.10.0.0
112K    target/usr/lib/libaprutil-1.so.0.5.2
120K    target/usr/lib/libapr-1.so.0.4.8
104K    target/usr/lib/libexpat.so.0.5.0
68K     target/usr/lib/libneon.so.27.3.0
1.9M    total

And log4cplus is in active development, latest relese 1.1.2 from 2013-10-22...

Regards,
Peter

> 
> 
>  Regards,
>  Arnout
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-08 19:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-07 21:27 [Buildroot] [PATCH] log4cplus: new package Peter Seiderer
2013-11-08  0:38 ` Arnout Vandecappelle
  -- strict thread matches above, loose matches on Subject: below --
2013-11-08 19:45 Peter Seiderer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox