Far be it from me to suggest how they actually implement the logging in
the code base, but it is hard to go past the log4* libraries.

-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Doug
Sent: Tuesday, 23 March 2010 7:53 AM
To: 'U2 Users List'
Subject: Re: [U2] UD - Error Logging

Wally,

I guess I'm the taker.

There is this nice open source product called log4c.  It can log to
files,
syslog or any other destinations.  It is modeled after an open source
product we use called log4j.  It runs on HP, RedHat, Solaris, AIX, and
Windows.  But since it is open source, you can port it any other
platform as
well.

Perhaps the best part is the logging levels (TRACE, DEBUG, INFO, WARN,
ERROR, and FATAL).  That adds standard granularity to the logging.
Additionally you can reformat the logging into any format you want.  You
can
control the size and the number of logs you want to keep. 

I pulled this from our log4j configuration on our U2WebLink middleware
product: 
# Loggers
log4j.logger.com.u2logic.XLr8U2Interface.U2WebLinkLogger=INFO,U2WebLinkF
ileA
ppender
log4j.logger.com.u2logic.XLr8U2Interface.XLr8ReplicatorLogger=INFO,XLr8R
epli
catorFileAppender
log4j.logger.org.quartz=INFO,QuartzSchedulerFileAppender
log4j.logger.org.directwebremoting=INFO,DirectWebRemotingFileAppender
#
# U2WebLink Log File Appender
log4j.appender.U2WebLinkFileAppender=org.apache.log4j.RollingFileAppende
r
log4j.appender.U2WebLinkFileAppender.File=logs/U2WebLink.log
log4j.appender.U2WebLinkFileAppender.Append=true
log4j.appender.U2WebLinkFileAppender.ImmediateFlush=true
log4j.appender.U2WebLinkFileAppender.layout=org.apache.log4j.SimpleLayou
t
log4j.appender.U2WebLinkFileAppender.MaxFileSize=1000KB
log4j.appender.U2WebLinkFileAppender.MaxBackupIndex=10

What this means is your entire code must be changed to accommodate this
new
logging structure. Additionally, you could use standard tools for you
log
analysis instead of writing your own.  We use an open source tool in
Eclipse
to analyze our logs that even allows us to see them live over the
internet.

Regards,
Doug

 


-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Wally Terhune
Sent: Monday, March 15, 2010 8:06 PM
To: U2 Users List
Subject: Re: [U2] UD - Error Logging

I would be happy to entertain (and formally register) a detailed,
coherent
proposal for logs, error logs, diagnostic logs - location and
management.
Do you still want the saved_logs directory concept? (20 or configurable?
Iterations saved)
What happens at 'startud'? Anything happen at 'stopud'?
Is the trunclog command useful?
Should the detailed UniBasic run-time error message logging provided by
7.2.0 /usr/ud72/include/msglevelconfig be placed separate from
udt.errlog?
Should RFS have a separate log for error messages?
Should RFS Archiving - have a separate log for offload messages?
Client/server debug logs are inconsistent in configuration and
activation.
What would you propose in this area?
Locations must be discoverable by tools that collect information for
diagnostics (such as udtdiag). 
What else am I missing?

Whereas I am constantly requesting more usable content of the messages,
can
we just focus on the overall architecture for this specific proposal?

This would be something to be considered by PM for UniData.NEXT and
prioritized with the rest of the enhancements.
Other venues for proposals such as this are u2-users better and better
forum
and the UniData CAB (just recently formed by PM).

Any takers?
Regards,

Wally Terhune
U2 Support Architect
Rocket Software
4700 S. Syracuse Street, Suite 400 **Denver, CO 80237 **USA
Tel: +1.720.475.8055
Email: wterh...@rs.com
Web: www.rocketsoftware.com/u2

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
###########################################################################################
The information transmitted in this message and attachments (if any) is 
intended only
for the person or entity to which it is addressed. The message may contain 
confidential
and/or privileged material.  Any review, retransmission, dissemination or other 
use of
or taking of any action in reliance upon this information by persons or 
entities other
than the intended recipient is prohibited.  If you received this in error, 
please
contact the sender and delete the material from any computer.

The intended recipient of this e-mail may only use, reproduce, disclose or 
distribute
the information contained in this e-mail and any attached files with the 
permission of IMB.
###########################################################################################
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to