Download the PHP package mrlig/tracelog without Composer

On this page you can find all versions of the php package mrlig/tracelog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tracelog

安装扩展:

项目根目录执行 composer require mrlig/tracelog

管理页面地址:域名/traceloglist

导入数据库文件

数据库文件位于:项目根目录/vendor/mrlig/tracelog/src/database 导入方式:

  1. 直接在你的数据库中导入两张数据表

  2. 使用数据库迁移工具,首先创建两个迁移类,然后打开新建的迁移类,将chnagedown方法内容替换为/vendor/mrlig/tracelog/src/database/migrations目录下对应的内容,最后执行数据迁移,就创建好两张表了
注意:如果你的数据库设置了表前缀,你需要修改新添加的这两个数据表的前缀

使用方法:

use mrlig\tracelog\TraceLog;

一般
  1. TraceLog::info($message)
    警告
  2. TraceLog::warning($message)
    错误
  3. TraceLog::error($message)
    SQL
  4. TraceLog::sql('begin') 开始标记
  5. TraceLog::sql('end') 结束标记

    错误接管

    如果需要自定义接管框架异常处理,在配置文件中配置exception_handle的值为\\mrlig\\tracelog\\Http,当发生错误时则会将一些错误信息记录到数据库,日志文件中将不再记录

使用注意:


All versions of tracelog with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mrlig/tracelog contains the following files

Loading the files please wait ....