First, log4j configuration
The first step: Join Log4j-1.2.8.jar to Lib.
Step two: Establish the log4j.properties under the classpath. The contents are as follows:
If you put it under SRC, you don't have to configure it or you have to go to Web.xml to configure a listener
Reference:
Log4j.rootcategory=info, stdout, R log4j.appender.stdout=org.apache.log4j.consoleappender log4j.appender.stdout . Layout=org.apache.log4j.patternlayout LOG4J.APPENDER.STDOUT.LAYOUT.CONVERSIONPATTERN=[QC]%p [%t]%C.%M
tracecontext class provides two methods: Write and warn, which allow the statement to be written to the tracking record. Each method is overloaded and allows you to specify the trace type, text message, and optional error information. The only difference between the two methods is that the warn method displays its text in red.
[Note] When you specify a category in calling the write or
the object class. The trace attribute in the page object is an instance of the tracecontext class. The tracecontext class provides two methods: Write and warn, which allow the statement to be written to the tracking record. Each method is overloaded and allows you to specify the trace type, text message, and optional error information. The only difference between the two methods is that the warn method dis
function4, modify the configuration file, the log output to the consolelog4j profile is: # # # Set level and destination (here multiple Destinations) # # #Log4j.rootlogger = Debug,console# # # Here's me is the package, that is, in this package logging, is only the debug and above the level of loggingLog4j.logger.me=debug# # # Output to console # # #Log4j.appender.CONSOLE = Org.apache.log4j.ConsoleAppenderLog4j.appender.CONSOLE.Target = System.outLog4j.appender.CONSOLE.layout = Org.apache.log4j.
, North China Electric Power College, Xi'an Jiaotong University, Tianjin University, Shanghai Jiaotong University, Chongqing University, and Nanjing electric power automation Research Institute have successively developed different principles and different types of computers. protection device. In 1984, the microcomputer protection device for transmission lines originally developed by China North Electric Power University first passed the identification and was applied in the system [5]. It open
the following three aspects: changes to enterprise business processes adapt to ERP system processes, changes to ERP system processes adapt to enterprise business processes, enterprise business processes and ERP system processes have been modified to achieve the purpose of integrated optimization.
We know that from the early order point method to the Enterprise Resource Planning Management System, in the process of ERP formation and development, there is always a core that is to reduce costs and
mode attribute is dynamically added to the main style sheet template, the matching template in the imported style sheet can be correctly called.
Listing 7
So far, we have completed the design of the style sheet, and we have designed a simple verification system. Listing 8 is the source code of the test tool. List 7 is the complete source code of the internal user product style sheet. List 8 is the complete source code of the general user product style sheet. List 9 is the co
NodeList = docuement.getelementsbytagname ("price");2. Set the content of the themeNode No=nodelist.item (0);//Get his nodesNo.settextcontent ("100$");//Set his subject content3.write the document tree in memory back into the XMLTransformerfactory factory = Transformertactory.newinstance ();Transformer tr = Factory.newtransformer ();Tr.transformer (New Domsource (doument), New Streamresult ("Src/book.xml"));Vi. adding child element nodes to the speci
The first two articles briefly describe the method for parsing xml by using sax to implement the parsing function. The following uses sax to create an xml file. The first two articles briefly describe the method for parsing xml by using sax to implement the parsing function. The following uses sax to create an xml file.
The specific method of using sax to create xml is to add relevant comments to the program, or directly add the code.
Package cn.com. sax; import java. io. outputStream; import j
transmit the data collected by the monitoring terminal. The Power Information data acquisition terminal of substation Switchgear is the core of the design, including voltage transformer ( knot )/Current transformer (CT), signal conditioning, signal acquisition (AD),FPGA the design of the circuit, and its structure is shown in 2 . Figure 2 collection Terminal block Diagram The working process
operator here refers to the operator object that has been wrapped by Operatormap: New OperatormapSuper T> st = (new operatormapnew Func1 ())). Call (O);p Arent.call (ST);Operatormap's call did three things:New Mapsubscriber(o, transformer); O.add (parent); return parent;The new Subscriber () and new Func1 () (or transformer objects) are encapsulated by Mapsubscriber. The new Subcriber (Mapsubscriber objec
Because of business requirements, you need to extract each line of text with the check typeface.The sample is as follows:1 input 10kVB, c female segment 820 latching prepared self-cast platen 2 exit 10kVB, c female segment 820 standby jump 803 platen 3 exit 10kVB, c female segment 820 prepare appeal 820 platen 4 Check 2, 3rd main transformer Split position consistent 5 closed 820 circuit Breaker 6 Check 820 circuit breaker with load 7 check
server that provides local information services. Information data from other power line coupling units of substations are connected with IP switches through their respective local communication modules, and the exchange of user automation information, voice information and Internet information with the outside world is realized through IP switch.3 Key TechnologiesDPL Communication module is the key equipment to realize this scheme, it not only has the function of modem to realize the transmissi
Today I do a download function of Android, using the Tomcat on my machine to do the server, on Tomcat download things, but the Android system is always prompt error said cannot connect to my tomcat, but I clearly started the Tomcat service Ah, And the code I also checked the good changed, no mistake ah, this is to give me depressed bad, I believe many beginners will have such experience, hehe ... Really overwhelmed, quite let people depressed, I here and you share a solution, hehe ... Find me th
data to the hdfs: // 10.232.42.91: 19000/input directory and run wordcount to check the effect.
$ cd hadoop/share/hadoop/mapreduce$ hadoop jar hadoop-mapreduce-examples-2.0.3-alpha.jar wordcount hdfs://10.232.42.91:19000/input hdfs://10.232.42.91:19000/output13/03/07 21:08:25 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable13/03/07 21:08:26 INFO service.AbstractService:
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.