Download the PHP package bjphp/log without Composer

On this page you can find all versions of the php package bjphp/log. 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 log

环境要求

日志级别划分

级别 描述
debug 详细的debug信息。
info 你的应用中的一些有意义的事件,例如用户登录,记录SQL语句等。
notice 你的应用中的一些正常但明显有价值的事件。
warning 出现了异常,但不是错误,例如使用了被废弃的 APIs ,某个 API的 调用异常,或其他不期望出现的,但不是错误的情况。
error 运行时错误,不需要立即被处理但通常需要被记录或者监控。
*critical 危险情况,例如某个程序组件不可用,或出现未被捕获的异常等。
*alert 告警,必须采取行动来修复,例如整个网站宕机或数据库无法访问等。
*emergency 系统不可用。
alarm 发出告警

日志结构组成

原文:

结构:

不带年月日的毫秒级时间 日志唯一码 | 日志级别 | 日志标签 | 内容.信息部分 内容.数据部分

composer包的使用

在没有composer的项目引入composer

  1. 创建composer.json文件

  2. 写入内容

composer引入

引入指定版本

单独升级composer包

移除composer包

操作步骤

没有composer.json的项目的前置操作

1. 创建composer.json
2. 写入内容

主要流程

1. 引入composer包

composer require bjphp/log:1.5

参考 \vendor\bjphp\log\demo.php 使用

All versions of log with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
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 bjphp/log contains the following files

Loading the files please wait ....