In the process of developing applications, debugging is also a very important link. In addition to the real-time debugging supported by IDE (such as VS.PHP or the debugging function supported by IDE), adding appropriate debugging information to the web application is also very useful. Method, anyone who has developed Java or .Net applications is familiar with log4XX. Yii Framework also provides a similar Log function, Yii::log, which appears as a built-in component of CWebApplication. It can be configured through a configuration file (the configuration in Yii is usually protected/config/main.php). The previous article Yii Framework Development Concise Tutorial (2) Yii Web Application Basics briefly describes the application components. In addition to the Log component, Yii predefines a series of core application components to provide functions used in common web applications. For example, the request component is used to parse user requests and provide information such as URLs, cookies, etc. By configuring the properties of these core components, we can modify Yii's defaults in almost all aspects
1. PHP Development Framework Yii Framework Tutorial (3) Adding logs to the application
Introduction: In the process of developing applications, debugging is also a very important link, in addition to the real-time debugging supported by the IDE ( Such as the debugging function supported by VS.PHP or IDE), adding appropriate debugging information to Web applications is also a very useful method. Anyone who has developed Java or .Net applications is familiar with log4XX. Yii Framework also provides similar Log Function, Yii::log, appears as a built-in component of CWebApplication. It can be configured through a configuration file (the configuration in Yii is usually protected/config/main.php).
2. Oracle 10g Adding and deleting log groups
Introduction: This is actually a relatively common mistake. Generally speaking, this is because the log group will be switched when the log is full. At this time, a checkpoint will be triggered, and DBWR will remove the dirty
3 in the memory. oracle 10g RAC Add log groups and members and delete log members
##Introduction: SQL alter database add logfile thread 1 group5('+data/myrac/onlinelog/myrac1_redolog_group5_01') size 100m; SQL alter database add logfilemember '+data/myrac/onlinelog/myrac1_redolog_group5_02' to group 5; SQL alter database add logfile th
4. NHibernate+Oracle10g builds a project architecture full analysis (5)
Introduction: 7. Add logging capabilities to the presentation layer project 1. Add the following code in Web.Config: configdivs div name="log4net" type=" log4net.Config.Log4NetConfigurationdivHandler,log4net"/ /configdivs log4net root level value="INFO" / appender-ref ref="LogFileAppender" / a
5. lite version mysql addition Log function_MySQL
Introduction: The streamlined version of mysql adds log function
[Related Q&A recommendations]:
How to print the execution trace of the program in php?
The above is the detailed content of Recommended content for adding logs. For more information, please follow other related articles on the PHP Chinese website!