Summer-16 / CSGO-VMPanel

A Fully automated VIP Management panel for CSGO Community servers
GNU General Public License v3.0
85 stars 18 forks source link

App Logger || panelServer #9

Closed jastisriradheshyam closed 4 years ago

jastisriradheshyam commented 4 years ago

Problem

Currently basic logger (console.log) is used through out the panelServer app. In this case one my know the error but not able to deduce the location of the error easily. From technical standpoint console.log is a synchronous function which further causes performance issues if used excessively.

Solution

Add a logger module with multiple log level and trace info, by this approach log can be classified based on the severity of log level corresponding to individual log, and with trace info developer can pin point the error based upon log provided.

How a log will look like:

[0063d66abade48252c98dc1abb053b01] [2020-08-22T02:09:02.185] [INFO] <Server> {panelServer/server.js:136} => Server is running on port 3535.

INFO

jastisriradheshyam commented 4 years ago

Done merging and issue is resolved.