#!/usr/bin/env python#-*-coding:utf-8-*-" "the log class can output different levels of logs to different log files" "ImportOSImportSYSImport TimeImportLoggingImportinspecthandlers= {logging. NOTSET:"/tmp/tnlog-notset.log", logging. DEBUG:"/tmp/tnlog-debug.log", Logging.info:"/tmp/tnlog-info.log", logging. WARNING:"/tmp/tnlog-warning.log", logging. ERROR:"/tmp/tn
Log levels Pages A
Home
Adding additional libraries to the CLASSPATH
Advanced Configuration
Basic Configuration
Configuring the JVM, the JMeter process runs in
FAQ
Log levels
modifying Properties
Proxy Configuration
Remote Server Configuration
Selecting Tests to Run
To develop an application, the importance of logging is self-evident. However, it is sometimes found that a large number of garbage logs appear in the log. The so-called spam logs are logs that you do not need to know, or the logs are not useful for viewing or tracking apps. It is also (but not only) that the common log framework sets the log level for these issu
Problem Description1. After the page has been modified, after the submission of the page 400 error, but the background does not output any error message. 2. The debug listener should also have no response to the corresponding submit link on the page (not in the Controller method in the background). 3. Refresh the submit link in the browser to enter the background method (debug can be heard)Workaround:1. Through 3rd of the question, it is clear that the contents of the page must be the result of
project
Environment: Eclipse
Language: Java
Business: Divided into two modules of Web Department and batch System
Package:
├─x│└─y│└─z│└─e
│└─w
The following is the Web Department │├─action││└─interceptor│├─dto│├─entity│├─exception│├─hibernate│├─listener│├─service
│└─util
The following is Batch series │├─batch││├─bean││├─conf││├─exception││├─query
││└─util
Other └─template└─simple
Ps:
It is easy to see from the above directory structure diagram, the
Body: This is a configuration file that uses log4net 1.2.9.0 to output messages of different levels to different log files. log4net. config adds references to the project and adds a sentence to assemblyinfo. CS:
[Assembly: log4net. config. xmlconfigurator (configfile = "log4net. config", watch = true)] Add in Application_OnStart-WebForm or in main function-winform
Log4net. config. xmlconfigurator. Configu
Go beyond Console.log by learning on log levels, filtering log output and structuring your output to be meaningful and Concise. The JavaScript Console object offers many methods to make your life Easier-start learning them here!Console.log ("This isconsole.log message"), Console.error ("This is Console.error message"); Console.warn ("This isconsole.warn message"
descriptive narrative of the problem1. After a change in the page, after the submission of the page 400 error, but the background is not output no matter what error message. 2. The debug listener should also have no response to the submission link on the page (no controller method in the background). 3. The browser refreshes the submit link to enter the background method (debug can be heard) workaround: 1. By 3rd of the question, it is clear that the contents of the page must be a questio
type* Otherwise, if one of the operands is of type float, the other operand will be converted to float type* Otherwise, if one of the operands is of type long, the other operand will be converted to a long type* Otherwise two operands will be converted to int type
Excerpt from: "Java Core technology" 3.5.5
Forced swap:double x = 9.9997; int NX = (int// Strong turn operation, so it can truncate the decimal part NX = 9 // Of course we c
1. PrefaceHotspot has adopted a accessibility analysis algorithm to determine whether an object can be used by a GC, whether it is a reference or an accessibility analysis algorithm to determine whether an object exists or not. If the value stored in the data of type reference represents the starting address of another piece of memory, it is said that this memory represents a reference. To enrich the description of the relationship between objects and objects, in order to implement the system ca
Label:Access levels
Modifier
Class
Package
Subclass
World
Public
Y
Y
Y
Y
Protected
Y
Y
Y
N
No modifier
Y
Y
N
N
Private
Y
N
N
N
The following table shows where the members of the Alpha class is visible for each of the access modifiers that can
Table of Contents
Filtering Messages
When a-message is logged via a Logger it's logged with a certain log level. The built-in log levels is:
SEVERE
WARNING
INFO
CONFIG
FINE
Finer
FINEST
The log level was represented by the class java.util.logging.Level . This class co
Four Ways of sychronized keywords
Sychronized method () {}
Sychronized (objectreference) {/*block*/}
Static Synchronized Method () {}
Sychronized (Classname.class)
where 1 and 2 represent the current object of the lock, that is, an object is a lock, and 3 and 4 represent the lock class, that is, the lock of this class.
Note that sychronized method () is not a lock function, but rather a lock object, namely: If two of the methods in this class are sychronized, then as long as two threads sh
Package-privateThis describes the access level of the Java class in the official guidance:
At the top level-public, or package-private (no explicit modifier).
At the member Level-public, private, protected, or package-private (no explicit modifier).
Do not know what package-private is, so continue to look down, see such a passage:
A class may being declared with the modifier public, in which case, which is visible to all cla
Four Ways of sychronized keywords
Sychronized method () {}
Sychronized (objectreference) {/*block*/}
Static Synchronized Method () {}
Sychronized (Classname.class)
where 1 and 2 represent the current object of the lock, that is, an object is a lock, and 3 and 4 represent the lock class, that is, the lock of this class.
Note that sychronized method () is not a lock function, but rather a lock object, namely: If two of the methods in this class are sychronized, then as long as two threads sh
in the tireless practice, the time can let himself to another level
(2) Think too much, do too little: want to see everything, nothing to look carefully, heard, they do not use
How to get the law:
(1) Deliberate practice: Split to the most fine grain size, for each of the intentional contact, so that they always stay in the not very comfortable learning state
(2) The best sense of humor: learning is very dull, time tension will make people grumpy, mentality imbalance, have to have the a
, a hunger-like phenomenon will occur and the thread will stop.No Wait (wait-free)No lock requires only one thread to complete the operation within a finite step, while no waiting is further extended on a lock-free basis. It requires all threads to be completed in a limited number of steps, so that they do not cause hunger problems. If you limit the upper limit of this step, you can further decompose the no wait to have no waiting and the number of threads regardless of the few, the difference b
Java log Design Practice (2), java log
Several considerations during the design phaseUse Spring Log4jConfigListener to dynamically adjust the Log Level
Add the following content to the corresponding web. xml location:
Note]
1.Do not setLog4jConfigLocationSpecified// WE
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.