Favicon

AW: WG: doc links broken?

Hello Curt!

Thank you!

For me are all links on

http://logging.apache.org/log4cxx/index.html

into the log4cxx broken.

eg:
http://logging.apache.org/log4cxx/apidocs/classlog4cxx_1_1Logger.html#e3
http://logging.apache.org/log4cxx/apidocs/classlog4cxx_1_1nt_1_1NTEventLogAppender.html
http://logging.apache.org/log4cxx/apidocs/classlog4cxx_1_1PatternLayout.html

and so on

Hope that helpes!

Andreas Pfaffenbichler

-----Ursprüngliche Nachricht-----
Von: Curt Arnold [mailto:carnold <at> apache.org] 
Gesendet: Freitag, 07. November 2008 15:18
An: Log4CXX User
Betreff: Re: WG: doc links broken?

On Nov 7, 2008, at 4:35 AM, Andreas Pfaffenbichler wrote:

> Sorry, dyslexic error of mine.
(Continue reading)

Favicon

WG: doc links broken?

Sorry, dyslexic error of mine.

I am new at ---log4cxx---, and I found all links to the manual pages
broken.

Regards
Andreas Pfaffenbichler

Von: Andreas Pfaffenbichler 
Gesendet: Donnerstag, 06. November 2008 21:33
An: 'log4cxx-user <at> logging.apache.org'
Betreff: doc links broken?

Hi

I am new at log4cpp and I found all links to the manual pages broken.

Can someone help?

Best regards
Andreas Pfaffenbichler

Favicon

doc links broken?


Hi

I am new at log4cpp and I found all links to the manual pages broken.

Can someone help?

Best regards
Andreas Pfaffenbichler

Curt Arnold | 4 Nov 18:31
Favicon

ApacheCon live video streaming available; keynotes and Apache 101 are free

Can't make ApacheCon this week in New Orleans?  You can still watch all
the keynotes, Apache 101 sessions, and system administration track in
live video streams:

   http://streaming.linux-magazin.de/en/program_apacheconus08.htm?ann

Keynotes and the Apache 101 lunchtime sessions are free; the full
sysadmin track, including httpd performance, security, and server stack
administration talks are available for a fee.

Keynotes include:
- David Recordon, Six Apart  (Wednesday 09:30)
   "Learning from Apache to create Open Specifications"

- Shahani Markus Weerawarana, Ph.D.  (Thursday 11:30)
   "Standing on the Shoulders of Giants"

- Sam Ramji, Microsoft  (Friday 11:30)
   "struct.new("future", :open, :microsoft)"

   Reminder: New Orleans is CST or UTC/GMT -6 hours.

Advance notice: ApacheCon EU 2009 returns to Amsterdam, 23-27 March.  We
had a great response to our CFP and look forward to announcing the
schedule in the next month.

Regards
--

-- 
Lars Eilebrecht  -  V.P., Conference Planning
lars <at> apache.org  -  http://www.us.apachecon.com
(Continue reading)

Favicon

Non thread private MDC values.


Hi,

I would like to raise an issue concerning the MDC (in log4cxx 0.10.0 and
log4j 1.2). 

Is it possible to introduce MDC key-value pairs, say generalised MDC
values, which are not thread privat?

I like the concept of MDC but have the problem of logging many instances
of the same application (with many threads) running on many hosts. The
messages logged are send to a remote logging instance. Usually, we
cannot distinguish between the instances running on the same host. Here
I use the MDC. 

In this situation, a generalisation of the MDC would give me the
possibility to add values which help me to distinguish between the
instances (without carrying this information within the log-message).
The advantage of this generalised MDC is the existing treatment of the
MDC values (XMLSocketAppender, XMLSocketReceiver, DBAppender). Perhaps
it is sufficient to add a generalised 'put' and 'get' method to a
'global' hash in the MDC.

In the moment, I have to look whether the MDC still has values which
consumes unnecessary time (and  this is rather uncool).

Perhaps you have a better clou to this point. If so, please let me know.

Cheers
  Stefan
(Continue reading)

Andrew.P.Coleman | 31 Oct 13:07
Favicon

Problem with RollingFileAppender only retaining 14 files.

Hi,

We have been using log4j in our Java applications for some time and they
seem to work fine. We have a single application written in C++ which is now
using log4cxx 0.10.0.

I have setup an appender as follows

  <appender name="file" class="org.apache.log4j.RollingFileAppender">
    <param name="Threshold" value="DEBUG"/>
    <param name="File"
value="e:/iqbonds_uat_egb362/logs/CurveBlender/CurveBlender.log" />
    <param name="Append" value="true" />
    <param name="MaxFileSize" value="10MB"/>
    <param name="MaxBackupIndex"    value="50"/>
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d %-5p %c{1} - %m%n"/>
    </layout>
  </appender>

It seems to work fine except it is ignoring the MaxBackupIndex parameter
because once it gets to 13 files it deletes the oldest files. So I have
files like app.log, app.log.1 ..... app.log.13 but when it rolls it deletes
app.log.13.

Any help would be appreciated.

Thanks
Andy

(Continue reading)

Favicon

LOGCXX-282 patch

Hi,

I see issues as described in LOGCXX-282. Will there be a release
containing
the patch soon?? Afaik, the patch isn't in the trunk, is it?

I need log4cxx in productivity on remote mashines, thus it should work
deterministic.

Cheers
  Stefan

Ernesto Cullen | 21 Oct 14:24
Favicon

is it possible to log to the same file from log4cxx and log4net?

hi all,
    i have to log from two parts of the same application -one writen in
c++, the other in c#. We are using log4cxx in c++ section, and i would
like to add to the same file from c# module so i configured log4net to
use the same file (both using a RollingFile Appender). But i can't get
my .net messages into the file. I don't get any messages, but i have
stopped c++ logging and was able to see the messages from c# so i know
it works.
    I think it is a locking issue. I came into MinimalLock configuration
setting for log4net, but it seems that there is no correlative in log4cxx.

Does anybody knows if this cross-logging could be achieved? and if so,
how? Is there a config parameter or command to control the locking in
log4cxx?

Thanks in advance

Ernesto Cullen

Favicon

log4cxx::net::XMLSocketNode


Hi,

What "class" can be used in log4cxx 0.10.0
instead of log4cxx::net::XMLSocketNode from 0.9.7.

I have a code, which receives packets from XMLSocketHubAppender
or XMLSocketAppender and the code work on them.

Regards,
Seweryn Habdank-Wojewodzki

Jathy | 10 Oct 12:01
Favicon

Does TimeBasedRollingPolicy work with MaxBackupIndex?


I used TimeBasedRollingPolicy of RollingFileAppender to rollover log file
every minute. And at the same time I'd like to use MaxBackupIndex to set the
max number of backup files. But MaxBackupIndex does not work.
TimeBasedRollingPolicy cannot work with MaxBackupIndex or my configuration
file has some wrong? I attached my configuration:

<?xml version="1.0" encoding="UTF-8" ?> 
<log4j:configuration xmlns:log4j='http://logging.apache.org/' debug="true">
  <appender name="ROLLING"
class="org.apache.log4j.rolling.RollingFileAppender">
            <rollingPolicy
class="org.apache.log4j.rolling.TimeBasedRollingPolicy">

            </rollingPolicy>

    <layout class="org.apache.log4j.PatternLayout">

    </layout>

  </appender>
  <root>
    <level value="INFO"/>
    <appender-ref ref="ROLLING"/>
  </root>
</log4j:configuration>
--

-- 
View this message in context: http://www.nabble.com/Does-TimeBasedRollingPolicy-work-with-MaxBackupIndex--tp19915414p19915414.html
Sent from the Log4cxx - Users mailing list archive at Nabble.com.

(Continue reading)

Jathy | 10 Oct 08:58
Favicon

TimeBasedRollingPolicy does not work in RollingFileAppender


I used TimeBasedRollingPolicy to rollover log file every day but it did not
work. No files was generated. My configuration file is shown below,

<?xml version="1.0" encoding="UTF-8" ?> 
<log4j:configuration xmlns:log4j='http://logging.apache.org/' debug="true">
  <appender name="ROLLING"
class="org.apache.log4j.rolling.RollingFileAppender">
            <rollingPolicy
class="org.apache.log4j.rolling.TimeBasedRollingPolicy">

              
            </rollingPolicy>
    <layout class="org.apache.log4j.PatternLayout">

    </layout>

  </appender>
  <root>
    <level value="info"/>
    <appender-ref ref="ROLLING"/>
  </root>
</log4j:configuration>

And in the code, I used the following codes to initialized the log4cxx:

string strXmlConfig = "logging.xml";
log4cxx::xml::DOMConfigurator::configure(strXmlConfig);
log4cxx::LoggerPtr pLogger = log4cxx::Logger::getRootLogger();

(Continue reading)


Gmane