What if the event log file is corrupted?
As one of the administrative tools included in the Microsoft Management Console, Event Viewer is used to maintain log information on your computer for related programs, security features, and system events. You can browse and manage event logs through Event Viewer, collect various types of information related to software or hardware failures, or monitor Windows se
Log4j usage notes
Log4j is an open source project of Apache. By using log4j, programmers can control the destination of log information delivery, including the console, files, Gui components, and NT event recorder. They can also control the output format of each log, you can also define the level of each log to control the log generation process in greater detail
The website is about to be released. To track some logs, you need to use log4j. So I studied the configuration of log4j.
First, paste a configuration source file log4j. properties.
log4j.rootLogger=DEBUG, CONSOLE, FILE## for consolelog4j.appender.CONSOLE=org.apache.log4j.ConsoleAppenderlog4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayoutlog4j.appender.CO
Let's look back at the parameters.1InCCreate a new diskLog4jtest. Java,The content is as follows::Import org. Apache. commons. Logging. log;Import org. Apache. commons. Logging. logfactory;Public class log4jtest{Static log = logfactory. getlog (log4jtest. Class. getname ());Public static void main (string [] ARGs){Log.info ("I'm testing");Int x = 0;Try{X = 5/X;}Catch (exception E){Log.info (E );Log. debug (E );}}}
2CopyJarPackageCDiskLog4j-1.2.15.jarAndCommons-logging.jar)
Introduction
Log4j is an open-source project of Apache. By using log4j, we can control the log information delivery destination, such as the console, file, database, and even the interface server; you can also control the output format of each log. By defining the level of each log information, you can control the log generation process in greater detail.When necessary, you can use a con
1. Overview1.1 Backgroundin our daily development, logging is very important. Adding logging in an application in general, it is based on three purposes: monitoring the change of variables in the code, periodically recording to the file for other applications for statistical analysis work, tracking code run-time trajectory as the basis for future audits, as the role of the debugger in the integrated development environment, Debug information that prints code to a file or console.
1.2 Introducti
Today the discovery server on the Tomcat 8080 port does not come, the old prompt port has been occupied. use command:ps-aux | grep Tomcat found no 8080-port Tomcat process. Use the command:NETSTAT–APN to see all process and port usage. Discover the following list of processes, where the last column is Pid/program name clip_image002 discovered that 8080 ports are occupied by the Java process with PID 9658. Further use of the command: Ps-aux | grep Java, or directly: Ps-aux | grep pid View clip_im
Today the discovery server on the Tomcat 8080 port does not come, the old prompt port has been occupied.Use the command:Ps-aux | grep TomcatA tomcat process with no 8080 ports found.Use command: NETSTAT–APNView all process and port usage. Discover the following list of processes, where the last column is pid/program name8080 ports were found to be occupied by the Java process with PID 9658.Further use of the command: Ps-aux | grep Java, or directly: Ps-aux | grep PID ViewYou can clearly know tha
translates it into a publisher by copying the method of the publisher to that object:function Makepublisher (o) { var i; for inch publisher) { if(Publisher.hasownproperty (i) typeof[i] = = = "function") { O[i]=publisher[i]; } } O.subscribers={any:[]};}Paper objects, published daily and Monthly:var paper={ daily:function() { this. Publish ("Big news Today" }, Monthly:function() { this. Publish ("Interesting Things "," monthly ");}
Use the command:Ps-aux | grep httpdA tomcat process with no 8080 ports found.Use command: NETSTAT–APNView all process and port usage. Discover the following list of processes, where the last column is pid/program name8080 ports were found to be occupied by the Java process with PID 9658.Further use of the command: Ps-aux | grep Java, or directly: Ps-aux | grep PID ViewYou can clearly know that the 8080 port is a program occupied! Then decide if you want to kill with the KILL command!Method Two:
Reason analysis:
The Windows Picture and Fax Viewer is not in the program's way, but in the form of a dynamic-link library in the Explorer.exe program. The name is C:windowssystem32shimgvw.dll.
Shimgvw.dll as a thread into the EXPLORER.EXE main program.
One of the benefits of a dynamic-link library (DLL) is to reduce system resource generation, and instead of creating a separate program for it, insert other programs to run some functionality.
Sol
Software Introduction:After watching the video online, you may want to save the video file to your hard drive for later viewing. If the video is stored in the browser's cache folder, this software can help you find the video file from the cache folder and save it to a different location. It automatically scans the entire cache folder of IE, Mozilla-based web browser (including Firefox) and finds all the video files currently stored in it.Picture preview::http://dickmoore.cn/Down/videocacheview.z
Today the discovery server on the Tomcat 8080 port does not come, the old prompt port has been occupied.Use the command:Ps-aux | grep TomcatA tomcat process with no 8080 ports found.Use command: NETSTAT–APNView all process and port usage. Discover the following list of processes, where the last column is pid/program name8080 ports were found to be occupied by the Java process with PID 9658.Further use of the command: Ps-aux | grep Java, or directly: Ps-aux | grep PID ViewYou can clearly know tha
(Observer OB);//delete observer method void Removeobserver (Observer ob);//Notify All observers void Notifyobservers ();} Leadership Class Leader implements subject{//pool for all observers: Thread synchronization class Vectorprivate vector2.3 Testingpublic class Test {public static void main (string[] args) {//TODO auto-generated method stub Subject leader=new L Eader (); Student stu1=new Student ("Zhang students"); Teacher t1=new Teacher ("Miss Li"); Added into the Ob
); P2.on ( ' mm2 ', fn2); P2.emit ( ' mm2 ', ' ha 2 ha 2 ha 2 ha 2 '); console.log ( '-------------');p 2.off ( ' mm2 ', FN); P2.emit ( ' mm2 ', ' ha 2 ha 2 ha 2 ha 2 '); console.log ( '-------------');p 2.off ( mm2 '); P2.emit ( ' mm2 ', ' ha 2 ha 2 ha 2 ha 2 '); console.log ( '-------------'); For JavaScript Technical Essentials article please see Shanghai Shang School: "JavaScript Document Object Model Dom", "JS building JavaScript", "detail JavaScript BOM" and so on, please pay att
The Javaweb listener interface has 8 differentServletrequestlistener,Httpsessionlistener,Servletcontextlistener,Servletrequestattributelistener,Httpsessionattributelistener,Servletcontextattributelister,HttpsessionactivationlistenerHttpsessionbindinglistenerExplain separately1. Domain object listening 3, used to listen to the creation and destruction of domain objectsServletrequestlistener, creating: Request to start destroying: end of responseHttpsessionlistener, create: First call to Request.g
PHP provides a embed SAPI, that is, PHP allows you to invoke the functions provided by php/ze in C + + language. This article implements a PHP Opcodes viewer based on embed SAPI.
First of all, download the PHP source code for compiling, I now use PHP5.3 alpha2
Access to the source directory:
./configure--enable-embed--WITH-CONFIG-FILE-SCAN-DIR=/ETC/PHP.D--with-mysql--with-config-file-path=/etc/./make./make Install
Finally, remember to copy the gen
QQ Chat Record viewer This software green software, no need to install, you can run directly to all QQ version is effective. Use the method, run directly, and then select the QQ number to read, and then click to view the chat record can be viewed. The software principle is to QQ message database file directly read, solve the previous version can not see the QQ2006BETA2 version of the problem.QQ Chat Log Remote Instant view expert.1, five days free, wi
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.