AnyLogger is a simple open-source, no dependencies, JavaScript logger library, that can be extended and modified to fit most of your logging needs. AnyLogger is available in a lightweight (~1.8kb min+gzip) anyLogger.js or extended anyLoggerMax.js versions.
Add AnyLogger or AnyLoggerMax file to your project and consume it through Githubissues.