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 IndexWebSphere Message Broker SupportIIB 10 and Log4j

Post new topicReply to topic
IIB 10 and Log4j View previous topic :: View next topic
Author Message
vmanel
PostPosted: Thu May 09, 2019 9:24 am Post subject: IIB 10 and Log4j Reply with quote

Novice

Joined: 12 Mar 2019
Posts: 21

Hi,

We are using log4j for logging errors of IIB flows, IIB version is 10.0.0.13 and JRE is 1.8. We want to delete old log files based on certain days, which is not a functionality of log4j. So found a link which suggested to add a custom appender.
https://examples.javacodegeeks.com/enterprise-java/log4j/log4j-rotation-example/
Added this java class to jar file, and that jar file works fine for a simple java application, but when that jar is placed in /var/mqsi/shared class, and IIB errors are generated, logs are getting created, but older logs are not getting deleted. But if a jar works for a test application it should also be working for IIB, or is there any specific setup required to make it work in IIB?
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportIIB 10 and Log4j
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.