
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
MetroLog is a lightweight logging framework designed for portable code and WinJS. Although the API is based on NLog and log4net, the intention is that it's a very basic logging system. This version targets .NET Core, .NET 4.5, Windows 8.1 (Windows Store apps), Windows Phone 8, WinPhone 8.1, WinJS, Xamarin.iOS, Xamarin.Android
As WinRT isn't fully supported in NuGet yet, you'll need to manually add a reference to the MetroLog.WinRT.winmd file in your \packages\MetroLog.*\netcore45 directory. Just add the reference to the WinMD file, not anything else in the directory.
TypeScript definitions are provided as content in the package as well.
To hook up the debug logger to your WinJS console, in your default.js file, add the following at the top, right under 'var nav = WinJS.Navigation;'
MetroLog.WinRT.Logger.addEventListener("onlogmessage", function(message) { Debug.writeln(message); });
Then, in each module/js file you can add the following, putting in a useful name for the logger, such as the relative file name.
var logger = MetroLog.WinRT.Logger.getLogger("pages/myfile.js");
FAQs
MetroLog is a lightweight logging framework designed for portable code and WinJS. Although the API is based on NLog and log4net, the intention is that it's a very basic logging system. This version targets .NET Core, .NET 4.5, Windows 8.1 (Windows Store apps), Windows Phone 8, WinPhone 8.1, WinJS, Xamarin.iOS, Xamarin.Android
We found that metrolog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.