Re: "" cause html log file cannot be displayed correctly.

2016-10-11 Thread Emi

Hi Gary,


Can you please post your configuration file?


I've removed nonHtml section(s) from log4j2.xml file.




   
  
 

  

  
 

 


 
  
   


   

   
  
   
   
  
   

   

   
  
  
   

   




--
There is also log4j.dtd file(this is standard, I guess) paste as well:










(category|logger)*,root?,

   (categoryFactory|loggerFactory)?)>
















http://jakarta.apache.org/log4j/";
  threshold (all|trace|debug|info|warn|error|fatal|off|null) "null"
  debug(true|false|null)  "null"
  reset(true|false) "false"
>




























































































http://jakarta.apache.org/log4j/";
  version(1.1|1.2) "1.2"
  includesLocationInfo   (true|false) "true"
>






















-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: "" cause html log file cannot be displayed correctly.

2016-10-11 Thread Emi

Hi Gary,

org.apache.logging.log4j.core.layout.HtmlLayout.getHeader()
writes more header bytes before it gets to:


Looking at the code I do not see how an HTML file written by Log4j 2.7 
can start with a body tag.


Can you verify that only Log4j 2.7 is on the classpath?



All *log* related jars under WEB-INF/lib used to be:

commons-logging-1.2.jar
log4j-1.2-api-2.3.jar
log4j-api-2.3.jar
log4j-core-2.3.jar
log4j-jcl-2.3.jar
log4j-web-2.3.jar




(1) Install new jars, WEB-INF/lib now shows:
commons-logging-1.2.jar
log4j-1.2-api-2.7.jar
log4j-api-2.7.jar
log4j-core-2.7.jar
log4j-jcl-2.7.jar
log4j-web-2.7.jar



(2) start tomcat7;  log user login;

 debug.html displays correctly as shown below:








Log session start time Tue Oct 11 12:26:50 EDT 2016

width="100%">


Time
Thread
Level
Logger
Message



30382
http-bio-8080-exec-9
DEBUG
ProcessLogin
2016-10-11 12:27:12 login successfully





(3) http://hostname:8080/manager/html
  Click button "Reload"



(4) login again

 debug.html shows wrong format. "237137" is not shown 
under table anymore.


Here is the html contents:




login_out_info





Log session start time Tue Oct 11 12:26:50 EDT 2016

width="100%">


Time
Thread
Level
Logger
Message



30382
http-bio-8080-exec-9
DEBUG
ProcessLogin
2016-10-11 12:27:12 login successfully







237137
http-bio-8080-exec-2
DEBUG
ProcessLogin
2016-10-11 12:30:39 login successfully


==

"" is added, but there is no  for 
237137


Any help?

Thanks a lot!


"" cause html log file cannot be displayed correctly.

2016-10-07 Thread Emi

Hello,

Tried log4j2.7, when stop/reload tomcat, html log file shows wrong format.

This happens only when there are already previous records in the html 
log file.



Debug steps:

(1) run login and log one/two records in html format

(2) stop webapp
reinstalled webapp
start webapp

or just reload webapp

(3) run login and log record

test.html will be shown as:




Log session start time Fri Oct 07 10:42:05 EDT 2016

width="100%">


Time
Thread
Level
Logger
Message



237858
http-bio-8080-exec-22
DEBUG
ProcessLogin
2016-10-07 10:42:25 username: abc trying to login









344092
http-bio-8080-exec-29
DEBUG
ProcessLogin
2016-10-07 10:44:11 username: abc trying to login




"" cause the html cannot be displayed correctly.


If this cannot be fixed, can someone let me know is there a way when 
reinstall webapp or reload webapp from tomcat, there will always a new 
log file generated?


Want to upgrade jars from 2.3 to new version; log4j2.3 never with this 
problem.


Thanks a lot!
--
. tomcat 7.0.70
. log4j2.xml

 

 


 



Re: 2.6.2 minSize; reload tomcat - html log did not show correctly

2016-07-18 Thread Emi

attachments are discarded by the mailing list software so I couldn’t look at 
the log file.

Send to email as well.

Which file has the problem?  The one specified on fileName or the one in 
filePattern?

fileName - debug.html.

Only 3 lines in the file.


OnStartupTriggeringPolicy specifically specifies that the footer should not be 
written before it calls rollover(), so it should not be causing this.



to create a Jira ticket

Done (LOG4J2-1466).


-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org

2.6.2 minSize; reload tomcat - html log did not show correctly

2016-07-11 Thread Emi

Hello,

upgraded to 2.6.2 with minSize setup, when reload tomcat, debug.html are 
not shown correctly.


log4j.xml:

  
 

 


 
  


Steps:

Start tomcat7, Log message, reload tomcat7: debug.html are not shown 
correctly.


"



" are shown twice (attached debug.html log file).

May I know is there anything I didn't set correctly please?

Thanks a lot!




-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org

About onStartTriggeringPolicy for 2.6.1

2016-06-13 Thread Emi

Hello,

For 2.6.1, added onStartTriggeringPolicy:

  
 
 


 
  


.  Reload/restart tomcat
   debug.html is changed to debug-1.html automatically (even 
debug.html=10kb)

   New debug.html is created


So, it's not possible when debug.html < 50 MB, reload tomcat, info 
appended to debug.html anymore?




Please add the {{OnStartupTriggeringPolicy}} policy to your configuration.
{quote}
OnStartupTriggeringPolicy was forcing a rollover of empty files at 
startup and would append a second footer that was added by the prior 
shutdown.

{quote}
---


-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



2.6 html format - "" inserted in the middle of when restart tomcat

2016-06-01 Thread Emi

Hello,

Updated 2.3 to 2.6. When reload tomcat7, the logfile (html format) not 
shown correctly:



13942164
http-bio-.
INFO
ActionClass
..







13936096
http-bio.50
WARN
.
 



"" is added in the middle, so html file cannot 
be printed correctly.


Can someone help how to fix this please?

Here is log4j2.xml config:
  
 
 

 
  


   
  
   

Thanks a lot!


-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: Hide *.jar

2015-06-30 Thread Emi Lu

On 06/29/2015 07:43 PM, Ralph Goers wrote:

An actual example in the manual would be good.  I’ve never actually tried this 
but I am sure we must have a unit test for it.


Worth a FAQ or manual entry?
Vote for online manual and actual examples, which will be very helpful. 
Especially if you can help add also examples showing the differences 
xEx, rEx, filters


Thanks a lot!

-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: Hide *.jar

2015-06-29 Thread Emi Lu

OK, so you only want to hide hibernate from the stack trace.  Then modify your 
pattern for the PatternLayout to include %xEx{full,filters[org.hibernate]}


It works and thank you very much!

By the way, ran:
%xEx{short}
%rEx{short}

It seems that xEx showing .jar, rEx not showing it, is this the main 
difference between "xEx vs. rEx"?


Thanks again.

On Jun 29, 2015, at 9:19 AM, Emi Lu  wrote:

Mailing list bounced my email.

 Forwarded Message 
Subject:Re: Hide *.jar
Date:   Mon, 29 Jun 2015 12:16:34 -0400
From:   Emi Lu  <mailto:em...@encs.concordia.ca>
Reply-To:   em...@encs.concordia.ca <mailto:em...@encs.concordia.ca>
To: log4j-user@logging.apache.org <mailto:log4j-user@logging.apache.org>

On 06/29/2015 12:04 PM, Ralph Goers wrote:

Can you post the full output of the log event?


Here it is.

Red lines are the ones I want to hide.

2015-Jun-29 12:10:39.214 [http-8080-5] ERROR DBUtilUser - set gui_model Error: 
could not extract ResultSet  SELECT   ** ORDER BY   1, 2, 3
2015-Jun-29 12:10:39.215 [http-8080-5] ERROR DBUtilUser - 
org.hibernate.exception.SQLGrammarException: could not extract ResultSet
2015-Jun-29 12:10:39.217 [http-8080-5] ERROR 
org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler - Exception 
occurred during processing request: could not extract ResultSet


org.hibernate.exception.SQLGrammarException: could not extract ResultSet
 at 
org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:123)
 ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
 at 
org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
 ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
 at 
org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126)
 ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
 at 
org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112)
 ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
 at 
org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:91)
 ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
 at org.hibernate.loader.Loader.getResultSet(Loader.java:2066) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
 at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1863) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
 at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1839) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
 at org.hibernate.loader.Loader.doQuery(Loader.java:910) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
 at 
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:355)
 ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
 at org.hibernate.loader.Loader.doList(Loader.java:2554) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
 at org.hibernate.loader.Loader.doList(Loader.java:2540) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
 at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2370) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
 at org.hibernate.loader.Loader.list(Loader.java:2365) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
 at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:353) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
 at 
org.hibernate.internal.SessionImpl.listCustomQuery(SessionImpl.java:1873) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
 at 
org.hibernate.internal.AbstractSessionImpl.list(AbstractSessionImpl.java:311) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
 at org.hibernate.internal.SQLQueryImpl.list(SQLQueryImpl.java:141) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
 at DBUtilUser.set_gui_model_based_on_people_id(Unknown Source) 
~[DBUtilUser.class:?]
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:1.7.0_80]
 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
~[?:1.7.0_80]
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.7.0_80]
 at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_80]
 at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:872) ~[ognl-3.0.11.jar:?]
 at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1295) 
~[ognl-3.0.11.jar:?]
 at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68) 
~[ognl-3.0.11.jar:?]
 at 
com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117)
 ~[xwork-core-2.3.24.jar:2.3.24]
 at 
com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:108)
 ~[xwork-core-2.3.24.jar:2.3.24]
 at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1371) ~[ognl-3.0.11.jar:?]
 at ognl.ASTMethod.getValueBody(ASTMethod.java:90) ~[ognl-3.0.11.jar:?]
 at ognl.SimpleNode.evaluateGetValueBody(SimpleN

Re: Hide *.jar

2015-06-29 Thread Emi Lu



This is an excerpt from a stack trace.

Assuming it is coming from a log message (you don’t actually have enough below 
to know for sure), then to filter specific packages from the stack trace you 
would need to use the filters keyword on the rEx or xEx converters in the 
PatternLayout.  If you simply don’t want to see exceptions from hibernate then 
you need to look at the class that is logging them and filter that.

Tried:


But did not work. Do you have an example?

Thanks a lot!

to hide the following *.jar info?

at 
org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:123)
 ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at 
org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
 ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at 
org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126)
 ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at 
org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112)
 ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at 
org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:91)
 ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at org.hibernate.loader.Loader.getResultSet(Loader.java:2066) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1863) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1839) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at org.hibernate.loader.Loader.doQuery(Loader.java:910) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at 
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:355)
 ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at org.hibernate.loader.Loader.doList(Loader.java:2554) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at org.hibernate.loader.Loader.doList(Loader.java:2540) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]

Tried:
   
  
   

But they are still shown in log file.



-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Hide *.jar

2015-06-29 Thread Emi Lu

Hello List,

May I know how to hide the following *.jar info please?

at 
org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:123) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at 
org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at 
org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at 
org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at 
org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:91) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at org.hibernate.loader.Loader.getResultSet(Loader.java:2066) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at 
org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1863) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at 
org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1839) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at org.hibernate.loader.Loader.doQuery(Loader.java:910) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at 
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:355) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at org.hibernate.loader.Loader.doList(Loader.java:2554) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
at org.hibernate.loader.Loader.doList(Loader.java:2540) 
~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]


Tried:
   
  
   

But they are still shown in log file.

Thanks a lot!


-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: log4j2 for java 1.6.x?

2015-05-26 Thread Emi Lu

On 05/26/2015 12:00 PM, Ralph Goers wrote:

To be clear, the plan is to do future enhancements against Java 1.7, but if 
there is a bug or feature that is absolutely needed we can create releases for 
Java 1.6.

Vote for the release for java 1.6.

Hopefully you are aware of Oracle’s Java Roadmap - 
http://www.oracle.com/technetwork/java/eol-135779.html 
<http://www.oracle.com/technetwork/java/eol-135779.html>.  Public support for 
Java 1.6 was dropped in Feb 2013 and public support for Java 1.7 was ended in April 
2015.  Since you can still pay Oracle for support beyond those dates Log4j 
intentionally has lagged behind and continued to support Java 1.6 well beyond the 
point when most users have converted.

Got it. Thank you!

On May 26, 2015, at 5:55 AM, Emi Lu  wrote:

Hello Ralph,

We have several applications based on 1.6 and cannot be migrated to 1.7/1.8 for 
a while. If major fix/improvement can be added into 2.3 (sub)version, it will 
help a lot.

Thanks a lot!


If there is something you need for 1.6 just let us know.  We can always do 
another 1.6 release if it is needed.

Ralph


On May 25, 2015, at 11:06 AM, Emi Lu  wrote:

On 05/25/2015 01:40 PM, Andreas Opitz wrote:

Hi for more details, see
https://mail-archives.apache.org/mod_mbox/logging-log4j-dev/201505.mbox/%3CCACZkXPwJRPVkcmYOQGodzii5jBt%2BMSbVfzWUyMPpXLWX34934A%40mail.gmail.com%3E
.

Apache Log4j 2.3 requires a minimum of Java 6 to build and run.
This will be the last release of Log4j 2 to support Java 6.
Future releases will require a minimum of Java 7.

Got it. Thanks a lot for the link!


On 05/25/2015 11:44 AM, Saurabh Jain wrote:


Yepp it does.
I think 2.3 is the last version which supports 1.6
Upcoming versions will not support.

Correct me id m wrong list.


Got it. Won't try to use next new version then.
Thank you!



  Hello List,

Does log4j2 support for java version 1.6.x please?

Thanks a lot!

-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: log4j2 for java 1.6.x?

2015-05-26 Thread Emi Lu

Hello Ralph,

We have several applications based on 1.6 and cannot be migrated to 
1.7/1.8 for a while. If major fix/improvement can be added into 2.3 
(sub)version, it will help a lot.


Thanks a lot!


If there is something you need for 1.6 just let us know.  We can always do 
another 1.6 release if it is needed.

Ralph


On May 25, 2015, at 11:06 AM, Emi Lu  wrote:

On 05/25/2015 01:40 PM, Andreas Opitz wrote:

Hi for more details, see
https://mail-archives.apache.org/mod_mbox/logging-log4j-dev/201505.mbox/%3CCACZkXPwJRPVkcmYOQGodzii5jBt%2BMSbVfzWUyMPpXLWX34934A%40mail.gmail.com%3E
.

Apache Log4j 2.3 requires a minimum of Java 6 to build and run.
This will be the last release of Log4j 2 to support Java 6.
Future releases will require a minimum of Java 7.

Got it. Thanks a lot for the link!


On 05/25/2015 11:44 AM, Saurabh Jain wrote:


Yepp it does.
I think 2.3 is the last version which supports 1.6
Upcoming versions will not support.

Correct me id m wrong list.


Got it. Won't try to use next new version then.
Thank you!



  Hello List,

Does log4j2 support for java version 1.6.x please?

Thanks a lot!

-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org





-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: log4j2 for java 1.6.x?

2015-05-25 Thread Emi Lu

On 05/25/2015 01:40 PM, Andreas Opitz wrote:

Hi for more details, see
https://mail-archives.apache.org/mod_mbox/logging-log4j-dev/201505.mbox/%3CCACZkXPwJRPVkcmYOQGodzii5jBt%2BMSbVfzWUyMPpXLWX34934A%40mail.gmail.com%3E
.



Apache Log4j 2.3 requires a minimum of Java 6 to build and run.
This will be the last release of Log4j 2 to support Java 6.
Future releases will require a minimum of Java 7.


Got it. Thanks a lot for the link!




On 05/25/2015 11:44 AM, Saurabh Jain wrote:


Yepp it does.
I think 2.3 is the last version which supports 1.6
Upcoming versions will not support.

Correct me id m wrong list.


Got it. Won't try to use next new version then.
Thank you!



  Hello List,

Does log4j2 support for java version 1.6.x please?

Thanks a lot!

-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: log4j2 for java 1.6.x?

2015-05-25 Thread Emi Lu

On 05/25/2015 11:44 AM, Saurabh Jain wrote:

Yepp it does.
I think 2.3 is the last version which supports 1.6
Upcoming versions will not support.

Correct me id m wrong list.

Got it. Won't try to use next new version then.
Thank you!



Hello List,

Does log4j2 support for java version 1.6.x please?

Thanks a lot!

-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org





-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



log4j2 for java 1.6.x?

2015-05-25 Thread Emi Lu

Hello List,

Does log4j2 support for java version 1.6.x please?

Thanks a lot!

-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: SizeBasedTriggeringPolicy for HTMLLayout ?

2015-05-22 Thread Emi Lu

On 05/22/2015 02:58 PM, Gary Gregory wrote:

Try using a filePattern in your RollingFile.

If that does not work, I think you'll need to give us a lot more details.
Log4j version and versions of other relevant components. You complete
config and so on.

That's exactly the reason. Thank you very much!

On Fri, May 22, 2015 at 10:55 AM, Emi Lu  wrote:


  On 05/22/2015 01:46 PM, Gary Gregory wrote:

I do not see why this should not work. What happens when you try?

   The file cannot even be generated through tomcat 6.0.41. The log file
is generated/updated only if I change
 to .

But RollingFile won't work.

Thanks



On Fri, May 22, 2015 at 10:38 AM, Emi Lu  wrote:


Hello,

Is there a way to use RollingFile and SizeBasedTriggeringPolicy for
HTMLLayout please?

For example:

 
   
  
 

 
  




   


   




Thanks a lot!

-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org




  --
  E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory



-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



SizeBasedTriggeringPolicy for HTMLLayout ?

2015-05-22 Thread Emi Lu

Hello,

Is there a way to use RollingFile and SizeBasedTriggeringPolicy for 
HTMLLayout please?


For example:


  
 

   

 
   

   
   
  
   
   
  
   

   

Thanks a lot!

-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org