A standard yet lightweight NCC logging library for logging events both big and small with real-time tracing for debugging purposes.
Find a file
2023-01-29 21:16:20 -05:00
.idea Refactored Project, various changes and bug fixes. Implemented file logging 2022-12-22 18:02:41 -05:00
src/LogLib Minor correction 2022-12-31 01:24:29 -05:00
tests Added test_backtrace.php 2023-01-29 21:16:20 -05:00
.gitignore Added .gitignore 2022-12-13 23:20:34 -05:00
Makefile Removed unused 'debug' build configuration 2023-01-25 16:23:49 -05:00
project.json Updated project.json 2023-01-29 21:13:51 -05:00
README.md Updated README.md 2023-01-29 21:15:15 -05:00

LogLib

A logging library for PHP/ncc, this was quickly thrown together to provide a simple logging interface and to test out NCC's capabilities for PHP.

Table of Contents

Installation

The library can be installed using ncc:

ncc install -p "nosial/libs.log=latest@n64"

or by adding the following to your project.json file under the build.dependencies section:

{
  "name": "net.nosial.loglib",
  "version": "latest",
  "source_type": "remote",
  "source": "nosial/libs.log=latest@n64"
}

If you don't have the n64 source configured you can add it by running the following command:

ncc source add --name n64 --type gitlab --host git.n64.cc

Compiling from source

The library can be compiled from source using ncc:

ncc build --config release

or by running the following command:

make release