Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to disable logging call paths
    primarykey
    data
    text
    <p>I'd like to disable the portion of log4j that logs all class/method paths that are being called. For instance... </p> <pre><code>Apr 15, 2013 10:50:52 AM com.production.tasks.ImportNewOrders checkForOrders INFO: ------- Order #295510 Hibernate: select asset0_.id as id0_, asset0_.AssetID as AssetID0_, asset0_.barcode as barcode0_, asset0_.filename as filename0_, asset0_.orderID as orderID0_, asset0_.Priority as Priority0_, asset0_.qty as qty0_, asset0_.Status as Status0_, asset0_.TimeStamp_Received as TimeStamp9_0_, asset0_.type as type0_, asset0_.URL_Thumb as URL11_0_, asset0_.vendor as vendor0_ from production_queue.3D_Mgmt_v1_Assets asset0_ where asset0_.AssetID=? Apr 15, 2013 10:51:04 AM com.production.utility.File download INFO: - DecoFile downloaded from https://secure-url/165054548?user[id]=xxxxx&amp;key=xxxx to th_1107461838.png Apr 15, 2013 10:51:17 AM com.production.utility.File download INFO: - DecoFile downloaded from https://secure-url/165054548?user[id]=xxxxx&amp;key=xxxx to 1107461838.png Hibernate: insert into production_queue.3D_Mgmt_v1_Assets (AssetID, barcode, filename, orderID, Priority, qty, Status, TimeStamp_Received, type, URL_Thumb, vendor) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) Apr 15, 2013 10:51:17 AM com.production.tasks.ImportNewOrders checkForOrders </code></pre> <p>I would like to be... </p> <pre><code>INFO: ------- Order #295510 Hibernate: select asset0_.id as id0_, asset0_.AssetID as AssetID0_, asset0_.barcode as barcode0_, asset0_.filename as filename0_, asset0_.orderID as orderID0_, asset0_.Priority as Priority0_, asset0_.qty as qty0_, asset0_.Status as Status0_, asset0_.TimeStamp_Received as TimeStamp9_0_, asset0_.type as type0_, asset0_.URL_Thumb as URL11_0_, asset0_.vendor as vendor0_ from production_queue.3D_Mgmt_v1_Assets asset0_ where asset0_.AssetID=? INFO: - DecoFile downloaded from https://secure-url/165054548?user[id]=xxxxx&amp;key=xxxx to th_1107461838.png INFO: - DecoFile downloaded from https://secure-url/165054548?user[id]=xxxxx&amp;key=xxxx to 1107461838.png Hibernate: insert into production_queue.3D_Mgmt_v1_Assets (AssetID, barcode, filename, orderID, Priority, qty, Status, TimeStamp_Received, type, URL_Thumb, vendor) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) </code></pre> <p>Currently I haven't configured a log4j properties file. I want to keep INFO being sent to <code>stdout</code> as it is, but just avoid these method calls logs.</p> <p><strong>update</strong></p> <p>I've since created a <code>log4j.properties</code> file, but I can't find any settings to disable the logging of method calls.</p> <p>NOTE; I'm not trying to change the "format" of log messages, but disable the logging of method calls altogether.</p> <pre><code>log4j.rootLogger=INFO, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %t %c:%L - %m%n #prevent "no appenders" warning despite having appenders - http://stackoverflow.com/a/15912258/197606 log4j.category.org.jboss.logging=INFO, stdout #log4j.category.org.springframework=DEBUG,stdout log4j.category.com.model.entity =DEBUG,stdout </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload