Simplistic cloud-native distributed scheduler, serverlessly built on top of AWS services
Use of a logging mechanism other than javascript’s console.log should provide more feature in logging.
console.log is default for aws lambda and is simple, however have no features other then plot a text to be viewed somewherewinston provide a lot of featuresconsole.log callsconsole.log callswinston logging frameworkChosen option as for “wrapped console.log calls”. Since console.log is just a simple way to log things, it doesn’t meant for more advanced logging purposes. winston came to fill this gap with a complete logging solution for nodejs applications. However, in the scope of a lambda function, specially in a AWS environment, the major part of those features will not be used (for example the transports, coloring, advanced templating).
In this sense, wrap a console.log with some basic features like leveling, and basic templating can fit better to current context. Only for the sake of futurism, the wrapper must be implemented following the same interface of winston (eg: logger.info(...), logger.error(...), etc).
console.log callsconsole.log callsconsole.log