awesomeeng / awesome-log

Logging for enterprise ready nodejs applications.
MIT License
34 stars 4 forks source link

Removing "level" from fields list causes no log messages to be output. #15

Open arei opened 3 years ago

arei commented 3 years ago

Setting a fields configuration that does not have a level value, will prevent any log message from being generated.

For example...

Log.init({
  fields: "timestamp,text,args"
});
0LEG0 commented 3 years ago

As I can see in code the level field is required by design. May be this is not bug may be this is the feature? :-)