Download the PHP package devthis/console-logg without Composer

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

Laravel ConsoleLogg

PHPUnit suite codecov Latest Stable Version Total Downloads License FOSSA Status

Effortless PSR-3 Logger output to your console applications

Powered by Symfony's Console Logger

Table of contents

What does it do?

Logger channel for sharing messages between application and console commands

Typically, this requires a hacky solution, such as coupling your shared services with a console logger, or configuring multiple driver channels.

With ConsoleLogg you can have logs for your artisan commands, and behave as usual with http/controllers.

No code changes are required with logger usage

Supported:


Install

  1. Install the package via Composer:

  2. Enable logging channel console-logg

config/logging.php

Laravel - Logging Docs

Compatibility

Compatible Laravel
:heavy_check_mark: 10.*
:heavy_check_mark: 9.*
:heavy_check_mark: 8.*
:heavy_check_mark: 7.*
:heavy_check_mark: 6.*

Features

Artisan serve supported

Logger output will be shown in your local development server console.

Literally Effortless

Your application will not be coupled with ConsoleLogg.

There are no traits, classes, interfaces that you need to use. ConsoleLogg does not require any custom code, it just works.

The ConsoleLog Service Provider should be automatically added to your app, but if it hasn't, you can add it yourself to config/app.php

Command-in-command

ConsoleLogg has (not yet) been tested for compatibility using artisan commands in a command with nested command calls


Light footprint


Usage

Verbosity

Verbosity is optionally controlled by either using -v arguments when running artisan.

This is not behaviour set by ConsoleLogg, it is defined in combination of Laravel & Symfony

ConsoleLogg may provide configuration for this in the future, if demand is apparent

Verbosity Level
default emergency, alert, critical, error, warning
-v notice + all of above
-vv info + all of above
-vvv debug + all of above

Examples

Running artisan

View example usage ## Example #1 - SQL query logging There are several guides/answers on the internet that enable you to send all SQL queries to your configured Logger. With ConsoleLogg installed this means Links (in no order): - [Code Briefly - Seeing all SQL queries executed with your artisan command](https://codebriefly.com/how-to-log-all-sql-queries-in-laravel/) - [StackOverflow - Laravel 5.3 - How to log all queries on a page?](https://stackoverflow.com/a/43137632) - [Larvel Tricks - Real-time log of Eloquent SQL queries](https://laravel-tricks.com/tricks/real-time-log-of-eloquent-sql-queries) ## Example #2 - Raw code > :warning: **REMINDER:** n-o-t-h-i-n-g is special about this following code example > > There are no traits, interfaces, or classes/dependencies that are involved to use ConsoleLogg once it's installed. ### Souce code for example service
Source of App\Service\MyExampleService
### Source code for Console Application
Source of App\Console\Commands\ExampleConsole
### Running artisan
Artisan command output

License

Laravel ConsoleLogg is open-sourced software licensed under the MIT license.


All versions of console-logg with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1|8.*
illuminate/log Version >=6.0
illuminate/console Version >=6.0
illuminate/support Version >=6.0
psr/log Version >=1.1.4
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 devthis/console-logg contains the following files

Loading the files please wait ....