ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Why log4j can't be replaced by File Nodes?

Post new topic  Reply to topic
 Why log4j can't be replaced by File Nodes? « View previous topic :: View next topic » 
Author Message
Partha.Baidya
PostPosted: Wed Feb 01, 2017 4:28 pm    Post subject: Why log4j can't be replaced by File Nodes? Reply with quote

Voyager

Joined: 05 Nov 2009
Posts: 97

For developing a logging solution using IIB why I need to use log4j to write log information into files.
Can't I use IIB's inbuilt FileOutput node instead of log4j?
Any views on this?
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Feb 01, 2017 11:36 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Does a logging system have to use files?

No it does not

Do you really think that people like searching through possibly GB of raw text to look for a problem?

No they don't. It is hardly easy to use.


There are alternatives to using files for logging/auditing.
Rather than use logging to files inside each flow there are alternatives that can make a complete logging/auditing solution for your environment AND make it highly reusable and configurable.
Think outside the box a bit.

Finally,
log4J is not the answer to life, the universe or anything at all in the IIB world.
If you must use java based logging to files then there are builtin classes in IIB that will replace Log4J totally.
Just my $0.02 of worthless opinion.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
ruimadaleno
PostPosted: Thu Feb 02, 2017 2:08 am    Post subject: Reply with quote

Master

Joined: 08 May 2014
Posts: 274

Why building something from scratch when an option is already available ? why re-inventing the wheel ?

IIB/Broker provide monitoring capabilities (every node in a message flow, in properties tab, has a "monitoring" dedicated tab). Using this you can record some (or all of it) events emitted by a node (example: soap input node transaction start ; soap input terminal out) ,capture the information that travels through the node (in case of soap nodes you can record the xml payload).

All this information is recorded in a database allowing you to quickly search for "interesting" events (do you want to spend you day searching GB of files ???)

There is no overhead, the events are "dumped" to a dedicated queue and you message flow continues processing, no more "wait to file write complete". This is Async and there is a configurable service that handles the database writes for you ... nice

you can enable/disable monitoring in runtime and in a granular fashion (by message flow, by execution group ,etc) through command line/http console.
_________________
Best regards

Rui Madaleno
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Feb 02, 2017 5:15 am    Post subject: Re: Why log4j can't be replaced by File Nodes? Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Partha.Baidya wrote:
Can't I use IIB's inbuilt FileOutput node instead of log4j?


No.

- log4j allows files to be rolled over based on date / size / etc. automatically. The FileOutput node does not.
- log4j allows for logging to be in mechanisms other than files. The FileOutput node does not.
- log4j has been superseded by other Java classes that provide the same function is a better way
- IIB has better ways of providing event information than calling out to a Java class.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Partha.Baidya
PostPosted: Thu Feb 02, 2017 12:08 pm    Post subject: Reply with quote

Voyager

Joined: 05 Nov 2009
Posts: 97

Thanks every body for the response.

I am using monitoring facility provided by IIB.

Just wanted to know if log4j can be replaced by IIB FileOutput node.
@Vitor has given a clear picture what I was looking for.

Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Why log4j can't be replaced by File Nodes?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.