Download the PHP package edujugon/laravel-log without Composer

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

Laravel Log Package

Simple API to write logs for Laravel.

Installation

Type in console:

Laravel 5.5 or higher?

Then you don't have to either register or add the alias, this package uses Package Auto-Discovery's feature, and should be available as soon as you install it via Composer.

(Laravel < 5.5) Register the Log service by adding it to the providers array.

Publish the package's configuration file to the application's own config directory.

The above command will generate a new file under your laravel app config folder called log.php

Configuration

Update the log.php file with your data.

API List

path

path method sets the path where create / storage the log file.

Syntax

level

level method sets the logging level.

Available levels: emergency, alert, critical, error, warning, notice, info and debug.

Syntax

title

title method sets the title or main message to be written.

Syntax

line

line method sets a line below the title.

Notice that you can call this method as many time as lines you need to be written.

Syntax

logname

name method sets the logger name.

By default this name is "my-logger"

Syntax

fileName

fileName method sets the file name.

Remember to put the name without any extension.

Syntax

days

days method sets amount of days to be kept in server.

Syntax

A value "0" means no day limit

withoutDateTime

withoutDateTime method excludes datetime from log line.

Syntax

withoutLoggerDetails

withoutLoggerDetails method excludes logger details from log line.

Syntax

Exclude logger name and level

write

write method writes in log file.

Syntax

Usage samples

Also can do it by its Facade:


All versions of laravel-log with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^5.1
illuminate/log Version ^5.1
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 edujugon/laravel-log contains the following files

Loading the files please wait ....