承接 xmarkclx/silverstripe-easylogger 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

xmarkclx/silverstripe-easylogger

最新稳定版本:1.1.1

Composer 安装命令:

composer require xmarkclx/silverstripe-easylogger

包简介

Module used to easily log stuff.

README 文档

README

Module used to easily log stuff easily for whatever purpose you can imagine.

This isn't meant to be Silverstripe specific. But was made while working on a SS project.

There is a default log file called 'notification.log' that gets created when you use the quick log functions, i.e. EasyLogger::qLog(). The reason for adding multiple log files is that you can segregate stuff you want to log easily.

sales.log
foodEaten.log
etc.

The reason this was made is to make it easy for us to see what is going on in the code asap, so we can just call EasyLogger::qLog('message') or EasyLogger::quickLogCaller($a) to see a backtrace.

Configuration

Zero Configuration!

Default log file is (base_url)/notification.log.

Use custom logger feature to customize log file location.

##How to use## ###Log message### EasyLogger::qLog('message');

###Log variable### EasyLogger::qLog($var);

Log with call trace###

EasyLogger::quickLogCaller($stuff);

###Custom logger### $logger = new EasyLogger('dir/filename');

$loggger->log('message');

统计信息

  • 总下载量: 21
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-12-04