Log print location settings for Web projects

Source: Internet
Author: User

1, if the Logback.groovy file is placed in the project (e.g. Src/test/resource), the log will print to the console.

Logback.groovy content is as follows:

Built on Fri Feb 07:38:28 CET by logback-translator//For more information on configuration files in groovy// http://logback.qos.ch/manual/groovy.html//for assistance related to this tool or configuration files//in Gen eral logback User Mailing list at//http://qos.ch/mailman/listinfo/logback-user//for professional Support see//Http://www.qos.ch/shop/products/professionalSupportimport Ch.qos.logback.classic.encoder.PatternLayoutEncoderimport Ch.qos.logback.core.ConsoleAppenderimport Static Ch.qos.logback.classic.Level.DEBUGimport static Ch.qos.logback.classic.Level.INFOappender ("stdout", Consoleappender) {encoder (Patternlayoutencoder) {pattern = "%d{yyyy-mm-dd HH:mm:ss} [%level]%logger{50},%X{RP ID}%msg%n%ex "}}root (INFO, [" stdout "]) logger (" Com.travelzen ", Debug) Logger (" Com.ibatis ", Debug) Logger (" Java.sql.Connection ", Debug) Logger (" Java.sql.Statement ", Debug) Logger (" Java.sql.PreparedStatement ", Debug) Logger ( The Java. sql. ResultSet ", Debug) Logger (" Org.perf4j.TimingLogger ", Debug, [" StdOut "], false)

If this file is not there, it will be printed under/data/log/

Log print location settings for Web projects

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.