Download the PHP package thoth-pharaoh/logger without Composer

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

LOG紀錄-收集器

可以歸類成不同資料夾,並以日期及小時做分類

然後搭配 ap2hpoutre/laravel-log-viewer 套件,可以顯示Log視窗

版本匹配

Laravel package
8.X 1.X
9.X 2.X

安裝

你可以使用 composer 做安裝

匯出 Config

註冊 logs/{folder} 路由

RouteServiceProvider

至路由 即可看到Log畫面

folder為Log資料夾名稱 可以至 config/logger.php 中 log_folders 欄位添加

使用方法

使用 Facade:

先引入門面

建立Log:

參數 說明 類型 範例
$folder Log資料夾 string api
$message Log訊息 array ['error' => 'somethings went wrong']

清除Log:

參數 說明 類型 範例
$folder Log資料夾 string api
$destroyDate 此日期以前的紀錄做清除 string 2021-03-01(意指 2021-02-28以前的紀錄做清除)

也可以使用 Artisan Command 方便放到 Schedule 裡做定期清除任務

參數 說明 類型 範例
--destroy_days 保留幾天內的Log紀錄 int 30

destroy_days 不給就是以 config.logger.php 中 destroy_days 欄位為主


All versions of logger with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-json Version *
illuminate/support Version >=9.0
rap2hpoutre/laravel-log-viewer Version ^2.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 thoth-pharaoh/logger contains the following files

Loading the files please wait ....