我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

是否有来自php的记录器功能或者是否应该使用exec编写?

On linux in shell programming I use to being able to use the logger command to write the system log. Is there the equivalent function to do this from PHP? Or is it common practice to use exec("logger...") to do this?

It's easy to fill a system log with errors when you break code - been there, done that. :)

However you can either make your own logging system, or maybe have a look here: http://php.net/manual/en/function.syslog.php

近期文章

  • 如何检查字符串php中是否重复了一个单词[关闭]
  • 弹出仅在单击第一个div时有效
  • 不希望的自动递增分钟
  • Apache使用旧的PHP版本
  • php for a array of a array
  • 使用php和mysql的Highstock
  • Ubuntu使用删除的PHP版本
  • Wordpress查询+ ACF元查询
  • 动态改变形式值
  • 在Vagrant机器上查找xDebug时,PhpStorm 8 Interpreter读错了php.ini
  • 正确使用Laravel Homestead
  • 无法使用PHPExcel读取旧的file.xls excel文件
  • 访问FUEL CMS中的“博客”功能/模板
  • 在puttin php语法之后,我的网站陷入预加载器
  • 如何从javascript打印wordpress短代码
  • PHP MySQL管理员级别
  • PHP foreach并继续[关闭]
  • Foreach两个数组(php)
  • 以HTML格式从php服务中检索值
  • AddModule mod_php5.c不在httpd.conf中

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华