Skip to content

Commit

Permalink
feat : Add logging with Pino (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabnguess authored Jul 31, 2024
1 parent cb2eb5b commit 67f2da2
Show file tree
Hide file tree
Showing 10 changed files with 410 additions and 9 deletions.
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@
"contributions": [
"maintenance"
]
},
{
"login": "MaximeMRF",
"name": "Maxime",
"avatar_url": "https://avatars.githubusercontent.com/u/57860498?v=4",
"profile": "https://github.com/MaximeMRF",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7,
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Open-source statusboard inspired by [npm statusboard](https://npm.github.io/statusboard/) that work with any kind of github orgs. The project has been designed to be a complete and standalone Node.js server (and not a github page like npm).

<p align="center">
<img src="https://i.imgur.com/z8pb4DK.jpg">
<img src="https://i.imgur.com/CDQTOH2.png">
</p>

## Requirements
Expand Down Expand Up @@ -35,7 +35,7 @@ UI_ADMIN_PASSWORD=xxx
## Contributors ✨

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors-)
[![All Contributors](https://img.shields.io/badge/all_contributors-7-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Expand All @@ -52,6 +52,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center" valign="top" width="14.28%"><a href="https://github.com/abbesAlexandre"><img src="https://avatars.githubusercontent.com/u/34767221?v=4?s=100" width="100px;" alt="yurifa"/><br /><sub><b>yurifa</b></sub></a><br /><a href="https://github.com/dashlog/web-ui/commits?author=abbesAlexandre" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://sofiand.github.io/portfolio-client/"><img src="https://avatars.githubusercontent.com/u/39944043?v=4?s=100" width="100px;" alt="Yefis"/><br /><sub><b>Yefis</b></sub></a><br /><a href="https://github.com/dashlog/web-ui/pulls?q=is%3Apr+reviewed-by%3ASofianD" title="Reviewed Pull Requests">👀</a> <a href="#design-SofianD" title="Design">🎨</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/aishwarya-mali"><img src="https://avatars.githubusercontent.com/u/43086476?v=4?s=100" width="100px;" alt="Aishwarya Mali"/><br /><sub><b>Aishwarya Mali</b></sub></a><br /><a href="#maintenance-aishwarya-mali" title="Maintenance">🚧</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/MaximeMRF"><img src="https://avatars.githubusercontent.com/u/57860498?v=4?s=100" width="100px;" alt="Maxime"/><br /><sub><b>Maxime</b></sub></a><br /><a href="https://github.com/dashlog/web-ui/commits?author=MaximeMRF" title="Code">💻</a></td>
</tr>
</tbody>
</table>
Expand Down
14 changes: 14 additions & 0 deletions logger.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Import Third-party Dependencies
import pino from 'pino';

export const logger = pino({
level: 'error',
transport: {
target: 'pino-pretty',
options: {
colorize: true,
translateTime: true,
ignore: 'pid,hostname',
},
},
});
Loading

0 comments on commit 67f2da2

Please sign in to comment.