2022-12-13 23:13:49 -05:00
|
|
|
# LogLib
|
|
|
|
|
2022-12-22 18:02:41 -05:00
|
|
|
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.
|
|
|
|
|
2023-01-29 21:15:15 -05:00
|
|
|
## Table of Contents
|
2022-12-22 18:02:41 -05:00
|
|
|
|
2023-01-29 21:15:15 -05:00
|
|
|
<!-- TOC -->
|
|
|
|
* [LogLib](#loglib)
|
|
|
|
* [Table of Contents](#table-of-contents)
|
|
|
|
* [Installation](#installation)
|
|
|
|
* [Compiling from source](#compiling-from-source)
|
|
|
|
<!-- TOC -->
|
2022-12-22 18:02:41 -05:00
|
|
|
|
|
|
|
|
2023-01-29 21:15:15 -05:00
|
|
|
## Installation
|
|
|
|
|
|
|
|
The library can be installed using ncc:
|
2022-12-22 18:02:41 -05:00
|
|
|
|
|
|
|
```bash
|
2023-01-29 21:15:15 -05:00
|
|
|
ncc install -p "nosial/libs.log=latest@n64"
|
|
|
|
```
|
2022-12-22 18:02:41 -05:00
|
|
|
|
2023-01-29 21:15:15 -05:00
|
|
|
or by adding the following to your project.json file under
|
|
|
|
the `build.dependencies` section:
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"name": "net.nosial.loglib",
|
|
|
|
"version": "latest",
|
|
|
|
"source_type": "remote",
|
|
|
|
"source": "nosial/libs.log=latest@n64"
|
|
|
|
}
|
2022-12-22 18:02:41 -05:00
|
|
|
```
|
|
|
|
|
2023-01-29 21:15:15 -05:00
|
|
|
If you don't have the n64 source configured you can add it
|
|
|
|
by running the following command:
|
2022-12-22 18:02:41 -05:00
|
|
|
|
|
|
|
```bash
|
2023-01-29 21:15:15 -05:00
|
|
|
ncc source add --name n64 --type gitlab --host git.n64.cc
|
|
|
|
```
|
|
|
|
|
|
|
|
## Compiling from source
|
|
|
|
|
|
|
|
The library can be compiled from source using ncc:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
ncc build --config release
|
|
|
|
```
|
|
|
|
|
|
|
|
or by running the following command:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make release
|
|
|
|
```
|