DEV Community

Keff
Keff

Posted on

Can You Review My Project? I'm Listening๐Ÿ‘‚

I'm looking for some feedback and critique of a project of mine. Can you give me some feedback? ๐Ÿ‘‚๐Ÿ‘‚


GitHub logo loggin-js / loggin-js

๐Ÿ“ Customizable and expandable logger for Node.js


TL;DR

โ“ What's this project about, ey?

Well glad you asked, It's nothing new. It's a logging library for NodeJS, fully customizable with support for plugins and custom logging channels (ie: console, save to file, send over HTTP, log to memory and dump whenever you like, etc...). You can combine output channels, for example, log all output to the console and send errors to a remote endpoint.

It can show/hide logs based on severity (following standard RFC3164) and can be enabled disabled as you please. (can be customized)

I've also developed a couple of plugins for it, including:

  • Express.js
  • MongoDB
  • WebSocket

If you need a channel that is not supported, you can very easily create your own.

I know there are many suitable loggers out there, but none fit our needs.

๐Ÿ‘€ Show me what you got

Okay, here is an example.

The full demo can be tried here, you can find more examples on the repo

const loggin = require("loggin-js");

const logger = loggin.logger({
  level: loggin.severity('debug'),
  color: true,                     
  channel: 'demo-1',     
  formatter: 'long'          
});

logger.info('info', {
  user: 'Jeffrey',
  id: 101
});
logger.error('Teaching a snake how to kick! :D');
logger.emergency('Lemons');
logger.critical('critical', { 
  error: 'S*** something is bad!'
});
Enter fullscreen mode Exit fullscreen mode

The output will be something similar to this:
Alt Text

Output styles can be fully customized to fit your needs, or it can output the log in JSON format.


๐Ÿ’ฌ A little history about the project

The project was created on May 1, 2018, more than two years ago. I created the project as an internal library for a couple of projects at my company. When I started using it in more projects, I decided to Open Source it and have been maintaining it since. I have stopped using it at work and have lost a bit of motivation to keep maintaining it, as it has not had much adoption.

I'm now looking for some feedback to evaluate if I should continue improving and maintaining it. I would appreciate it if you could check it out and let me know what you think and If I should keep going.


If you read to here, I need to thank you for taking your precious time to read through the post!
All the best! And keep safe! ๐Ÿ˜Š

Top comments (0)