log4J printing to Console

View: New views
3 Messages — Rating Filter:   Alert me  

log4J printing to Console

by Aman T. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I'm running an application and the log4j is continually printing to the console. Is there anyway to turn this off? 
Here is some sample output:

[JGAP][11:49:04] RepastLevel L4JDataLogger - {}, [Component Data], {Tick=17300.0, Name=HCN, Volume=26.331127730080578}
[JGAP][11:49:04] RepastLevel L4JDataLogger - {}, [Component Data], {Tick=17300.0, Name=BUT, Volume=40.208663776023045}
[JGAP][11:49:04] RepastLevel L4JDataLogger - {}, [Component Data], {Tick=17300.0, Name=LNP, Volume=57.32977944666909}
[JGAP][11:49:04] RepastLevel L4JDataLogger - {}, [Component Data], {Tick=17300.0, Name=HCL, Volume=30.189999999987904}

I'm using JGAP within the an agent as part of a REPAST simulation.  I'm not sure why it is behaving this way.
Any help would be greatly appreciated.

-Aman

--
Aman Thakral
Graduate Student, GMC Centre for Engineering Design
McMaster University

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
jgap-users mailing list
jgap-users@...
https://lists.sourceforge.net/lists/listinfo/jgap-users

Re: log4J printing to Console

by Klaus Meffert-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Aman,
 
there is a log4j.properties file. You can configure log4j by this means. Please see the log4j documentation on the internet (e.g. http://logging.apache.org/log4j/) for further information.
 
In your case it seems as there is a non-JGAP logger, RepastLevel L4JDataLogger. This is not part of JGAP, it has nothing to do with JGAP. Maybe it's part of a library you use, like Repast?
 
Best
 


From: Aman Thakral [mailto:thakraa@...]
Sent: Friday, August 07, 2009 6:39 PM
To: jgap-users
Subject: [jgap-users] log4J printing to Console

Hello,

I'm running an application and the log4j is continually printing to the console. Is there anyway to turn this off? 
Here is some sample output:

[JGAP][11:49:04] RepastLevel L4JDataLogger - {}, [Component Data], {Tick=17300.0, Name=HCN, Volume=26.331127730080578}
[JGAP][11:49:04] RepastLevel L4JDataLogger - {}, [Component Data], {Tick=17300.0, Name=BUT, Volume=40.208663776023045}
[JGAP][11:49:04] RepastLevel L4JDataLogger - {}, [Component Data], {Tick=17300.0, Name=LNP, Volume=57.32977944666909}
[JGAP][11:49:04] RepastLevel L4JDataLogger - {}, [Component Data], {Tick=17300.0, Name=HCL, Volume=30.189999999987904}

I'm using JGAP within the an agent as part of a REPAST simulation.  I'm not sure why it is behaving this way.
Any help would be greatly appreciated.

-Aman

--
Aman Thakral
Graduate Student, GMC Centre for Engineering Design
McMaster University

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
jgap-users mailing list
jgap-users@...
https://lists.sourceforge.net/lists/listinfo/jgap-users

Parent Message unknown Re: log4J printing to Console

by Aman T. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The issues was that the jgap 3.4.3 jgap.jar file had the log4j.properties file in it.  I solved it by recompiling the jgap.jar with a modified version of the log4j.properties file (i took out the sections on printing to console).

Thank you very much for all your help,
Aman

On Sat, Aug 8, 2009 at 5:00 AM, Klaus Meffert <jgap@...> wrote:
Aman,
 
there is a log4j.properties file. You can configure log4j by this means. Please see the log4j documentation on the internet (e.g. http://logging.apache.org/log4j/) for further information.
 
In your case it seems as there is a non-JGAP logger, RepastLevel L4JDataLogger. This is not part of JGAP, it has nothing to do with JGAP. Maybe it's part of a library you use, like Repast?
 
Best
 


From: Aman Thakral [mailto:thakraa@...]
Sent: Friday, August 07, 2009 6:39 PM
To: jgap-users
Subject: [jgap-users] log4J printing to Console

Hello,

I'm running an application and the log4j is continually printing to the console. Is there anyway to turn this off? 
Here is some sample output:

[JGAP][11:49:04] RepastLevel L4JDataLogger - {}, [Component Data], {Tick=17300.0, Name=HCN, Volume=26.331127730080578}
[JGAP][11:49:04] RepastLevel L4JDataLogger - {}, [Component Data], {Tick=17300.0, Name=BUT, Volume=40.208663776023045}
[JGAP][11:49:04] RepastLevel L4JDataLogger - {}, [Component Data], {Tick=17300.0, Name=LNP, Volume=57.32977944666909}
[JGAP][11:49:04] RepastLevel L4JDataLogger - {}, [Component Data], {Tick=17300.0, Name=HCL, Volume=30.189999999987904}

I'm using JGAP within the an agent as part of a REPAST simulation.  I'm not sure why it is behaving this way.
Any help would be greatly appreciated.

-Aman

--
Aman Thakral
Graduate Student, GMC Centre for Engineering Design
McMaster University



--
Aman Thakral
Graduate Student, GMC Centre for Engineering Design
McMaster University

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
jgap-users mailing list
jgap-users@...
https://lists.sourceforge.net/lists/listinfo/jgap-users