🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

MetroLog

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

MetroLog

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

1.0.1
Source
NuGet
Version published
Maintainers
1
Created
Source

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");

Keywords

Logging

FAQs

Package last updated on 03 Feb 2016

Did you know?

Socket

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.

Install

Related posts