当前位置:网站首页>PHP output (print) log to TXT text
PHP output (print) log to TXT text
2022-06-25 05:58:00 【Wish you a dream come true】
/**
* Print log
* $msg Log contents
*/
function printLog($msg) {
if (!is_dir('log')){
mkdir('log',0777,true);
}
$path="log/".date('Y-m-d').".log";
file_put_contents($path, "【" . date('Y-m-d H:i:s') . "】" . $msg . "\r\n\r\n", FILE_APPEND);
}边栏推荐
- MySQL transaction learning notes (I) first encounter
- Only these four instructions are required to operate SQL data
- What changes have taken place in the project file after SAP ui5 tools ran the Fiori add deploy config command
- Websocket in the promotion of vegetable farmers
- Mongodb basic concept learning - Documentation
- JMeter stress testing and agent recording
- Understanding the dynamic mode of mongodb document
- [interview with a large factory] meituan had two meetings. Was there a surprise in the end?
- Feignclient reported an error npe:null
- Unsupervised domain adaptation in semantic segmentation:a review unsupervised domain adaptation in semantic segmentation: a review
猜你喜欢

ThreadLocal

MySQL uses the where condition to find strange results: solve

Semantic segmentation cvpr2019-advance: advantageous enterprise minimization for domain adaptation in semantic segmentation

C switch nested syntax

Deep learning non local neural networks

Voxel based and second network learning
SAP ui5 date type sap ui. model. type. Analysis of date parsing format
![[OSPF routing calculation (class I LSA router, class II LSA network, and class III LSA sum net)] -20211228-30](/img/c7/e38a7a5cd4c1e4105c3f3f246276c6.jpg)
[OSPF routing calculation (class I LSA router, class II LSA network, and class III LSA sum net)] -20211228-30

C simple operation mongodb

Excel splits a worksheet into multiple worksheets according to conditions, and how to split multiple worksheets into independent tables
随机推荐
DOM proficient? What is the difference between node and elment?
What is the use of the subprocess module
Soft exam information system project manager_ Information system security management - Senior Information System Project Manager of soft test 026
Getting started with Silverlight development 1
Use of pytorch tensorboard
Excel splits a worksheet into multiple worksheets according to conditions, and how to split multiple worksheets into independent tables
[untitled]
A method of automatic continuation of previous tables in word table
JS implementation mouse can achieve the effect of left and right scrolling
Day21 JMeter usage basis
Pat 1045 quick sort
SAP Fiori tools and corresponding cli (command line interface)
Use of collection
cacacahe
What are the reasons why most webmasters choose Hong Kong site group servers?
SAP ui5 beginner tutorial No. 28 - Introduction to the integration test tool OPA for SAP ui5 applications
Jenkins installation and configuration
Data7202 statistical analysis
Cnpm installation
Code learning-cvpr2020 unsupervised domain adaptive semantic segmentation: intra advance