it("should warn if log level got misspelled",()=>{
Log.Configure({
console:"WARNING",
lineDateFormat:"HH:mm:ss",
});
expect(loggedMessages).to.contain("Console log level is invalid. Please pick one of the case-sensitive levels provided in the sample config.");
});
it("should warn if log level for a file got misspelled",()=>{
Log.Configure({
files:[
{
file:"./logfile.log",
level:"WARNING",
},
],
});
expect(loggedMessages).to.contain("Log level of ./logfile.log is invalid. Please pick one of the case-sensitive levels provided in the sample config.");