jbroadway / analog

PHP logging library that is highly extendable and simple to use.
MIT License
342 stars 48 forks source link

how to use it without composer? #41

Closed chenbimo closed 4 years ago

chenbimo commented 4 years ago

i run my php in virtual machine and have't composer.

lux commented 4 years ago

If you clone this repository, you should be able to load it via:

<?php

require 'analog/lib/Analog.php';

Analog::handler (Analog\Handler\Stderr::init ());

Analog::log ('Output to php://stderr');

It uses a simple autoloader internally, so you shouldn't need to include anything else. Hope that helps!

lux commented 4 years ago

Sorry if there were duplicate notifications there, GitHub is having issues atm :)

chenbimo commented 4 years ago

OK,very thinks!