I’m working on a Node.js application using the Sails framework. I’ve noticed that the sails.log.crit() function works without integrating Winston, but I can’t find any documentation or records on this function in the Sails.js documentation.
Can I reliably use sails.log.crit() in my application without Winston?
Are there any potential issues or limitations I should be aware of if I use sails.log.crit() without Winston integration?
Thanks in advance for your help!
What I Tried and Expected:
I tried using sails.log.crit() in my application and observed that it logs messages as expected. However, I couldn’t find any official documentation about this function in the Sails.js docs. I expected to find detailed documentation on all logging functions provided by Sails, including sails.log.crit().
What Actually Happened:
Despite the function working correctly, the lack of documentation makes me uncertain about its reliability and future compatibility. I’m concerned about potential issues or limitations that might arise from using this undocumented feature.
Thanks in advance for your help!
ihsan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.