An open API service indexing awesome lists of open source software.

https://github.com/onesy-me/log

Log utils, very readable and clean logs
https://github.com/onesy-me/log

amaui back-end backend browser console front-end frontend javascript js library log logging logs node nodejs typescript utils web

Last synced: about 2 months ago
JSON representation

Log utils, very readable and clean logs

Awesome Lists containing this project

README

          



onesy logo

onesy Log


MIT license    
Production ready    
UMD 7.2kb gzipped    
100% test cov    
Browser and Nodejs


Very simple code    
Modern code    
Junior friendly    
Typescript    
Made with :yellow_heart:


### Add

```sh
yarn add @onesy/log
```

### Use

```javascript
import OnesyLog from '@onesy/log';

// Make a new log instance
// with an optional options value
const onesyLog = new OnesyLog({
arguments: {
pre: [
'Mongo',
],
},
});

// Log any array of values
onesyLog.info(`Collection: A`, `Response: 40ms`);

// Output

// 04-04-2014 04:04:14.141 (info):

// Mongo
// Collection: A
// Response: 40ms

```

### Dev

Install

```sh
yarn
```

Test

```sh
yarn test
```

### Prod

Build

```sh
yarn build
```