in. It seems log4j
provides the ability to do this, but it’s not clear where log4cxx stands.
Reference:
*http://markmail.org/message/5ufciwvzoqyeqc5x*http://markmail.org/message/5ufciwvzoqyeqc5x
--
Dale King
expected and there
are still some aftermath issues that need to be cleaned up.
Any help on prioritizing or checking the bug reports would be
appreciated.
--
Dale King
:
*http://markmail.org/message/5ufciwvzoqyeqc5x*http://markmail.org/message/5ufciwvzoqyeqc5x
--
Dale King
.
janaw...@geckosoftware.com
435-752-8026
--
Dale King
Is there a solution to this? Am I using the SocketHubAppender incorrectly?
My config is:
log4j.rootLogger=TRACE, SOCKETHUB
log4j.appender.SOCKETHUB=org.apache.log4j.net.SocketHubAppender
log4j.appender.SOCKETHUB.port=4445
--
Dale King
-fields-to-log4cxx-logger.html
I don't know if this is the best way to do it works for us. Any alternative
approach will be highly appreciated.
Many thanks,
RODOLFO
--
Dale King
libs is not an option for my real
project, as you might have guessed ;-).
Thanks,
Peter.
--
Dale King
PROTECTED] wrote:
Hi Dale,
Thanks for your reply.
On 27 Nov , 2008, at 13:46 , Dale King wrote:
I don't see anything wrong in what you showed. The problem is probably
in code you have not shown. Based on the error you show it sounds more
like you are doing something like delete string2
-tp20593910p20706436.html
Sent from the Log4cxx - Users mailing list archive at Nabble.com.
--
Dale King
-with-MaxBackupIndex--tp19915414p19915414.html
Sent from the Log4cxx - Users mailing list archive at Nabble.com.
--
Dale King
is done by
subclassing TimeBasedRollingPolicy.
On Fri, Sep 26, 2008 at 5:43 AM, Jathy [EMAIL PROTECTED] wrote:
Hi, Could you give more information or an example on this? Thanks.
Dale King-2 wrote:
That is already possible. You would need to use the RollingFileAppender
that is in the rolling
was sent to you by Thomson Reuters, the global news and
information company.
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of Thomson
Reuters.
--
Dale King
--
Dale King
am trying to do here is help others.
The bit of difficulty I had was that TimeBasedRollingPolicy cannot be used
just as a triggering policy. It can be used just as a rolling policy as I
described. What I wanted was rollover every day, but only keep the last n
days worth of logs.
--
Dale King
not happen.
The same behaviour is shown when the connection cannot be established
at the beginning of a session.
Is that a known bug/feature?? I'am using log4cxx 0.10.0.
Cheers
Stefan
--
Dale King
::MDC class.
--
Dale King
of
housekeeping he wants without needing to use the crontab
regards, Allen.
From: Dale King [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2008 4:20 PM
To: Log4CXX User
Subject: Re: How to config log4cxx to delete the log files periodically
Log4Cxx does not have this capability
.
Regard,
Jathy
--
View this message in context:
http://www.nabble.com/How-to-config-log4cxx-to-delete-the-log-files-periodically-tp19448819p19450427.html
Sent from the Log4cxx - Users mailing list archive at Nabble.com.
--
Dale King
years
ago!
You're welcome to try to build Chainsaw yourself against the 1.2 branch.
Good luck, I've never been able to do it.
Here is more info on this:
http://markmail.org/message/ih7q5rgfckmlowaw#query:log4j%20chainsaw%20MDC+page:1+mid:ny52attu27fglhnl+state:results
--
Dale King
of the format keeps it the same.
This would rollover every second:
log-%d{dd-MMM--HH_mm_ss}.log
This would rollover every hour:
log-%d{dd-MMM--HH}.log
This should rollover every 10 minutes I think:
log-%d{dd-MMM--HH_m}0.log
--
Dale King
. As you guessed it is hardcoded.
--
Dale King
to delete older logs.
--
Dale King
On Thu, Jul 17, 2008 at 2:41 AM, Jostein Tveit [EMAIL PROTECTED] wrote:
Dale King [EMAIL PROTECTED] writes:
12 is a hardcoded limit because this requires renames of all backup
files which is expensive
It would have been nice if log4cxx issued a warning or error
message if the value was set
that the maxBackupIndex appears to top out at 13, even
though we have 20 specified. Are we doing something wrong or is 13 a hard
coded maximum for this field?
12 is a hardcoded limit because this requires renames of all backup
files which is expensive
.
--
Dale King
binaries for APR instead of building them yourself.
I can send you my vcproj files if you would rather go that route.
The wiki build instructions should really be updated to reflect how to
build with visual studio.
--
Dale King
to use log4cxx.
So there are advantages to using a non-windows specific toolchain, the
problem here was that apr was broken at the moment for the windows
version of that toolchain (mingw).
So there is a reason for MinGW.
--
Dale King
On Mon, Jun 16, 2008 at 2:22 AM, srkraju [EMAIL PROTECTED] wrote:
log4j.appender.A4=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A4.File=example.log
log4j.appender.A4.DataPattern='.'-MM-dd-HH-mm
That should be DatePattern
--
Dale
-1.6.5/lib/
-L tells the linker where to look for libraries. You have to actually
specify what libraries to look for as well using the -l option.
So if your directory had libfoo.so in it that you needed to link with,
you would add -l foo to your command line.
--
Dale King
*)'
That is a link error, not a compile error. The command line you show
says to compile and link, but you didn't specify ant libraries to link
against so it is not linking against log4cxx.
--
Dale King
think you first need to figure out why you want a wrapper.
--
Dale King
equivalent to the class you linked to. The
equivalent file pattern on windows would be:
${USERPROFILE}/myApp%i.log
--
Dale King
://svn.apache.org/viewvc/logging/log4cxx/trunk/src/main/cpp/syslogappender.cpp?r1=613005r2=654960pathrev=654960diff_format=l
It has already been fixed in the trunk version of the repository. See
this revision:
http://svn.apache.org/viewvc?view=revrevision=654960
--
Dale King
described. Not sure why it wouldn't work
with 0.9.7
--
Dale King
On Thu, Jun 5, 2008 at 10:18 PM, Curt Arnold [EMAIL PROTECTED] wrote:
On Jun 5, 2008, at 12:55 PM, Dale King wrote:
That is a bug in version 0.10.0 Local 2 and higher was not implemented
correctly. See this difference to see the cut-and-paste error:
http://svn.apache.org/viewvc/logging
On Thu, May 22, 2008 at 10:37 PM, Curt Arnold [EMAIL PROTECTED] wrote:
On May 22, 2008, at 6:21 PM, Dale King wrote:
Consider these statements on a platform (i.e. Windows) where WCHAR is
used with various combinations of wide and normal strings:
LOG4CXX_TRACE( logger, L1 L2
On Fri, May 23, 2008 at 12:35 PM, Jacob L. Anawalt
[EMAIL PROTECTED] wrote:
Dale King wrote:
On Thu, May 22, 2008 at 7:55 PM, Jacob L. Anawalt
[EMAIL PROTECTED] wrote:
I get the same error if I write a wide
string to std::cout via .
Not exactly. For std::cout all of the wide strings would
CharMessageBuffer or std::ostream . I think all of these should
probably be returning MessageBuffer which would allow it to switch to
a WideMessageBuffer if I ever add a wide string, not just if the first
string is wide.
--
Dale King
654699
or remove the offending using namespace statements.
--
View this message in context:
http://www.nabble.com/build-head-revision-failed-on-windows-xp-tp17224117p17244432.html
Sent from the Log4cxx - Users mailing list archive at Nabble.com.
--
Dale King
==
Please access the attached hyperlink for an important electronic
communications disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==
--
Dale King
be cleaned up.
On Fri, May 9, 2008 at 11:26 PM, Dale King [EMAIL PROTECTED] wrote:
OK, I've figured out why the exception on control-C. The problem is
Thread::join will throw a ThreadException if the apr_thread_join does
not return a 0 status. But in the case of control-C the
apr_thread_join
PROTECTED] wrote:
On May 7, 2008, at 1:28 PM, Dale King wrote:
Any feedback on these issues? I submitted Jira issues on all 3.
The threads not ending cleanly is a major problem with me trying to
move one component of our system to Log4Cxx. I would at least like to
get a patch
, 2008 at 9:56 PM, Dale King [EMAIL PROTECTED] wrote:
Ok, I have tried the latest in subversion and yes it works when the
program exits normally including the annoying wait for the sleep to
end.
However it does not work when you end the program when you hit
control-C. I get an exception
this???) and hence I experienced a lot of memory leaks.
To
my best knowledge MDC is also no alternative, since it does not allow for
the
restricted object-file logging.
Is there any chance to achieve this logging behaviour with log4cxx?
Thank you!
Cheers Michael
--
Dale King
not found a complete solution and the fact
that it behaves differently than the FileWatchdog thread is confusing.
I'm willing to help out on it, but am interested in your thoughts on
the threading issues since you wrote it.
On Thu, May 1, 2008 at 10:59 PM, Dale King [EMAIL PROTECTED] wrote
as this will confuse someone that sees them in the
documentation and tries to use them.
--
Dale King
;
}
else if (StringHelper::equalsIgnoreCase(s,
LOG4CXX_STR(LOCAL1), LOG4CXX_STR(local7)))
{
return LOG_LOCAL7;
}
On Thu, May 1, 2008 at 11:22 AM, Curt Arnold [EMAIL PROTECTED] wrote:
On May 1, 2008, at 9:45 AM, Dale King wrote:
It looks like
FileWatchdog does not keep the app from exiting.
I hope you're planning on a 0.10.1 version soon.
--
Dale King
it.
--
Dale King
should really be:
/wombat/folder/foo.%d
On Tue, Apr 29, 2008 at 1:31 PM, Curt Arnold [EMAIL PROTECTED] wrote:
On Apr 29, 2008, at 11:38 AM, Dale King wrote:
I was testing out rolling file appenders (in Windows) which I set to
rollover every minute so I can see what happens. Here
operation.
--
Dale King [EMAIL PROTECTED]
=INFO
What I would like to do is to read the lines from a database
and provide it to log4cxx.
Is there such a way, or do I need to read the lines from the
database and create a (temporary) configFile which than has
to be parsed by log4cxx again?
Tnx Thomas
--
Dale King
Jacob L. Anawalt [EMAIL PROTECTED]:
Dale King wrote:
MDC::put( key, value1 );
MDC::put( key, value2 );
Without a code example, I must ask; are these MDC::put calls in the same
thread right next to each other?
The attached program correctly swaps keys in 0.9.7. I don't have
your description, I have a feeling that the same thing is biting you.
Ufuk Kayserilioglu
[1] https://issues.apache.org/jira/browse/LOGCXX-246
Dale King wrote:
It failed at compile time.
For windows at least with unicode these names are actually #defines of the
form
problem.
From your description, I have a feeling that the same thing is biting you.
Ufuk Kayserilioglu
[1] https://issues.apache.org/jira/browse/LOGCXX-246
Dale King wrote:
It failed at compile time.
For windows at least with unicode these names are actually #defines of the
form
it, it crashed the
application. Probably should fail more gracefully.
--
Dale King
to get that behavior is to modify your
code to make it call configureAndWatch. So you cannot get this
behavior when using the default mechanism to get the configuration
file. You really should be able to specify this within the
configuration file itself.
--
Dale King
=localhost
log4j.appender.socketLogger.Port=4448
log4j.appender.socketLogger.locationinfo=true
--
Dale King
=RemoteHost value=localhost/
param name=Port value=4448/
layout class=org.apache.log4j.XMLLayout
param name=properties value=true/
param name=locationinfo value=true/
/layout
/appender
On Thu, Mar 6, 2008 at 9:57 PM, Dale King [EMAIL PROTECTED] wrote:
What is the status
57 matches
Mail list logo