katzgrau / KLogger

A Simple Logging Class For PHP
http://codefury.net/projects/klogger/
980 stars 284 forks source link

Dependency free / stand-alone version #57

Closed dyedgreen closed 9 years ago

dyedgreen commented 9 years ago

It would be cool if there was a dependency free, one-file version of KLogger. It would be easier to integrate into projects that don't use composer.

tleb commented 9 years ago

Why would one create a project without using Composer? :smile:

onno-vos-dev commented 9 years ago

Even though I don't see why it would make a lot of sense, it's actually quite easy to do.

All you gotta do is remove the LogLevel dependency and you're good to go. I've done this purely for illustrative purposes. I WILL not maintain that fork, it's purely to illustrate that it isn't that difficult to do if you really need this.

https://github.com/onno-vos-dev/KLogger_single_file

katzgrau commented 9 years ago

You might be interested in past KLogger versions (check the tags) - they were all standalone. KLogger's evolved a bit since then, but the original version still serves it purpose just fine