Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/nicolascbv/echoguard

NPM package made to help you visualize your logs.
https://github.com/nicolascbv/echoguard

css ejs helper html husky javascript log logger logging npm package pnpm tsup typescript

Last synced: about 2 months ago
JSON representation

NPM package made to help you visualize your logs.

Awesome Lists containing this project

README

        


Echoguard Logo



coverage percentage


package version


license


my linkedin


my github


my portfolio

# Echoguard

Welcome to the echoguard! This package was made to help you monitor your logs in development mode in nestjs applications!

## USAGE
Start your nestjs application and insert your server instance + the name of your application in this method below:

```
const app: NestExpressApplication =
await NestFactory.create(AppModule);

Echo.start({ server: app, appName: "" });

await app.listen(3000);
```

After that, you will have one database installed on the root of your project, be sure to ignore that in your gitignore file. With this in mind, now you can create your logs as you need them using this method below:

```
Echo.create({
name: 'some log',
level: Logger.LogsLevelEnum.[THE LEVEL OF YOUR LOG],
layer: 'where this log was launched (optional)',
description: 'the description of this log'
});
```

Every time you access /logs, you will see all the logs created by this method.