Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amaui-org/amaui-log
Log utils, very readable and clean logs
https://github.com/amaui-org/amaui-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
- Host: GitHub
- URL: https://github.com/amaui-org/amaui-log
- Owner: amaui-org
- License: mit
- Created: 2022-02-02T16:00:33.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T09:52:27.000Z (9 months ago)
- Last Synced: 2024-04-12T16:57:43.935Z (9 months ago)
- Topics: amaui, back-end, backend, browser, console, front-end, frontend, javascript, js, library, log, logging, logs, node, nodejs, typescript, utils, web
- Language: TypeScript
- Homepage: https://docs.amaui.me/library/log
- Size: 291 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
amaui Log
Log utils, very readable and clean logs
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:
## Getting started
### Add
```sh
yarn add @amaui/log
```### Use
```javascript
import AmauiLog from '@amaui/log';// Make a new log instance
// with an optional options value
const amauiLog = new AmauiLog({
arguments: {
pre: [
'Mongo',
],
},
});// Log any array of values
amauiLog.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
```