Linux application: automatically delete logs n days ago and logs n days ago
Linux is a system that automatically generates files, such as logs, emails, and backups. Although hard disks are cheap now, we can have a lot of hard disk space to waste these files, so that the system can clean up unnecessary files at regular intervals. You don't have to worry about whet
Mysql database enables slow query logs and mysql database logs
Modify configuration file
Add the following two sentences to the configuration file my. ini:
1 log-slow-queries = C: \ xampp \ mysql_slow_query.log2 long_query_time = 3
The first statement is used to define the path for slow query logs (for linux systems, permission issues are involved)The second
Android application Crash automatically captures logs _ automatically saves Crash logs to the local device, androidcrash
After the application crash occurs, you need to view the log to identify the problem. However, once the application is released, you need to find a way to analyze the user's crash log.
Therefore, we need to capture logs after the crash occurs a
Self-made mini logs and self-made logs
When writing website programs, you must write exceptions to logs. Log4Net is commonly used, but I do not have high requirements, you only need to record the exceptions and information in the website directory of the website server, so I wrote one by myself.
public static class Logger { private static readonly o
In the mysql database, count the logs of the current day:
For example, the Date Field of the bean database is usedate.
Calculate the log SQL statement for the current day:
select * from bean where date(usedate) = curdate();
Curdate () indicates the date of the current day.
If it indicates the data of the previous day, you cannot use curdate ()-1, because when the date is the beginning of the month, curdate ()-1 is not the last date of the previous mo
Solve the Error 500-When Joomla logs on to the background, and joomla logs on to the background 500-
Joomla has been logged on normally. suddenly one day, my friend told me that the login failed and the following error 500 was displayed.
This makes me very confused. On the one hand, it is really uncomfortable to solve the problem of web applications on windows servers. Machines can not log on like Linux, b
Apache2.4.4 Automatically splits logs and generates logs by year, month, and day.
If the size of the log file is limited to 800 mb and the file size is exceeded, you can set it as follows:
CustomLog "|/www/lanmps/apache/bin/rotatelogs/www/wwwLogs/logs/www.lanmps.com/policy_0000m_0000d.access.log 86400 800 M" common
Apache common logs and log4j logs
1. Three purposes of the log
A. Monitoring the variables in your code the synchronization of the data is recorded in the file for other system analysis.
B. Tracking code run track, to do after the basis of audit
C. Acting as a debugger in the development environment, output to a file or console
2. Apache provides a common log interface that enables the implementation of the
1 the way to output the log, of course, is cc.log 2 How to view the log?A) If the applet can run on the browser first, for example with chrome, the output log can be seen in the console; b) If you are debugging on a real machine, you need to use the log tool. Use Logcat on Android. 3 Android Debugging using Logcat method
Logcat Location: Android SDK Directory in D:\AndroidDevelopTools\sdk\platform-tools
To view the steps:
Connect your phone
CMD mode open L
-pmy_pwd-e ' show binlog EVENTS G 'Replace the password my_pwd with the server's root password.
1. Specify recovery time
For MySQL 4.1.4, you can specify the start and end times of the DateTime format through the--start-date and--stop-date options in the Mysqlbinlog statement. For example, suppose that at 10:00 today (today is April 20, 2005), execute the SQL statement to delete a large table. To recover the tables and data, you can restore the previous night's backup and enter:Mysqlbinlog--st
Sass learning logs and sass logs
1. What is SASS?
SASS is a CSS development tool. It provides a lot of convenient writing methods, greatly saving designers time and making CSS development easy and maintainable. This article summarizes the main SASS methods. Our goal is that, with this article, you do not need to read official documents for routine use.
Ii. Installation and Use
2.1 installation
SASS is writt
DISCUZ official forum imitating development logs (2) and discuz logs
Connect the log: http://www.cnblogs.com/gcs1995/p/4091159.html
It has been almost two months since I briefly analyzed the project I wrote down. I have learned many new technologies over the past two months:
Database Technology:
Oracle and mysql
Framework technology:
Hibernate, mybatis, strus2 [learning]
Text Markup Language:
Html5
Read books
The law of Construction
3/26
15:20
19:50
30
240
Perfect program, write blog
Write a program to find the maximum number of sub-arrays and 2
3/27
9:30
11:00
90
Write a perfect program
Write the program to find the largest Subarray and 2, perfect the concurrent blog
19:00
21:00
20
100
Read books
The law of Construction
Bug log:
Disable the "via protocol" problem resolution.The VIA protocol deactivation method: Start with program->microsoft SQL Server 2005-> Config tool->sql Server Configuration Manager--opens after you find the SQL The protocol to the Server 2005 Network Configuration "->mssqlserver property" disables the "via Protocol" in the property box on the right!The request failed or the service did not respond in a timely manner. For more information, see event logs
[The log of the database 'tempdb' is full] The latest solution, tempdb logThe log of the database 'tempdb' is full.Execute SQL statements. Temporary tables are not used in the middle.Prompt server: Message 9002, Level 17, status 2, Row 1The log of the database 'tempdb' is full. Back up the transaction logs of the database to release some log space.I found a solution on the Internet, which roughly solved the problem by expanding the log file size of th
Implement log4cplus to write logs in a single process, single thread, or single process, and separate logs by size
Filter log information based on script configurationIn addition to program configuration of the log environment, log4cplus implements script-based configuration through the PropertyConfigurator class. PassThe script can complete the configuration of logger, appender, and layout, so it can solve
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.