Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update NuGet package

  • Loading branch information...
commit 7f34d0219a55024f26498b0df5830ba3d205c8e9 1 parent 13209b6
Oren Novotny onovotny authored
1  .gitignore
View
@@ -12,5 +12,6 @@
_ReSharper.*
*.resharper
*.mdb
+*.nupkg
/TestResults
/packages
16 MetroLog.WinRT/MetroLog ReadMe.txt
View
@@ -0,0 +1,16 @@
+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.*\WinRT directory. Just
+add the reference to the WinMD file, not anything else in the directory.
+
+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");
+
3  MetroLog.WinRT/MetroLog.WinRT.csproj
View
@@ -115,6 +115,9 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="EventTarget.cs" />
</ItemGroup>
+ <ItemGroup>
+ <Content Include="MetroLog ReadMe.txt" />
+ </ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '11.0' ">
<VisualStudioVersion>11.0</VisualStudioVersion>
</PropertyGroup>
42 MetroLog.nuspec
View
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
+ <metadata>
+ <id>MetroLog</id>
+ <version>0.7.0</version>
+ <title>MetroLog Lightweight Logging for Portable and WinJS</title>
+ <authors>Matt Baxter-Reynolds,Oren Novotny</authors>
+ <owners>onovotny</owners>
+ <licenseUrl>https://raw.github.com/mbrit/MetroLog/master/LICENSE.txt</licenseUrl>
+ <projectUrl>https://github.com/mbrit/MetroLog</projectUrl>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <description>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 4.5,.NET Core 4.5 (Windows Store apps) and WinJS</description>
+ <summary />
+ <releaseNotes>Added a WinRT wrapper to enable use by WinJS apps</releaseNotes>
+ <tags>Logging WinRT NLog log4net portable pcl WinJS</tags>
+ </metadata>
+ <files>
+ <file src="MetroLog.WinRT\MetroLog ReadMe.txt" target="content\win8-javascript\MetroLog ReadMe.txt" />
+ <file src="MetroLog\bin\Release\MetroLog.dll" target="lib\net45\MetroLog.dll" />
+ <file src="MetroLog.NetFx\bin\Release\MetroLog.NetFx.dll" target="lib\net45\MetroLog.NetFx.dll" />
+ <file src="MetroLog.NetFx\bin\Release\MetroLog.NetFx.pdb" target="lib\net45\MetroLog.NetFx.pdb" />
+ <file src="MetroLog\bin\Release\MetroLog.pdb" target="lib\net45\MetroLog.pdb" />
+ <file src="MetroLog\bin\Release\MetroLog.dll" target="lib\netcore45\MetroLog.dll" />
+ <file src="MetroLog.NetCore\bin\Release\MetroLog.NetCore.dll" target="lib\netcore45\MetroLog.NetCore.dll" />
+ <file src="MetroLog.NetCore\bin\Release\MetroLog.NetCore.pdb" target="lib\netcore45\MetroLog.NetCore.pdb" />
+ <file src="MetroLog.NetCore\bin\Release\MetroLog.NetCore.pri" target="lib\netcore45\MetroLog.NetCore.pri" />
+ <file src="MetroLog\bin\Release\MetroLog.pdb" target="lib\netcore45\MetroLog.pdb" />
+ <file src="MetroLog\bin\Release\MetroLog.dll" target="lib\portable-net45+win8\MetroLog.dll" />
+ <file src="MetroLog\bin\Release\MetroLog.pdb" target="lib\portable-net45+win8\MetroLog.pdb" />
+ <file src="MetroLog.WinRT\bin\Release\MetroLog.dll" target="WinRT\MetroLog.dll" />
+ <file src="MetroLog.WinRT\bin\Release\MetroLog.NetCore.dll" target="WinRT\MetroLog.NetCore.dll" />
+ <file src="MetroLog.WinRT\bin\Release\MetroLog.NetCore.pdb" target="WinRT\MetroLog.NetCore.pdb" />
+ <file src="MetroLog.WinRT\bin\Release\MetroLog.NetCore.pri" target="WinRT\MetroLog.NetCore.pri" />
+ <file src="MetroLog.WinRT\bin\Release\MetroLog.pdb" target="WinRT\MetroLog.pdb" />
+ <file src="MetroLog.WinRT\bin\Release\MetroLog.WinRT.pdb" target="WinRT\MetroLog.WinRT.pdb" />
+ <file src="MetroLog.WinRT\bin\Release\MetroLog.WinRT.pri" target="WinRT\MetroLog.WinRT.pri" />
+ <file src="MetroLog.WinRT\bin\Release\MetroLog.WinRT.winmd" target="WinRT\MetroLog.WinRT.winmd" />
+ <file src="**\*.cs" target="src" exclude="_ReSharper.*\**\*.*;packages\**\*.*;**\Debug\**\*.*;Samples\**\*.*;Win8Sample\**\*.*;WebTargetSample\**\*.*" />
+ </files>
+</package>
33 Nuget/MetroLog.nuspec
View
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
- <metadata>
- <id>MetroLog</id>
- <version>0.6.5.0</version>
- <title>MetroLog Lightweight Logging for Portable code</title>
- <authors>Matt Baxter-Reynolds,Oren Novotny</authors>
- <owners>onovotny</owners>
- <licenseUrl>https://raw.github.com/mbrit/MetroLog/master/LICENSE.txt</licenseUrl>
- <projectUrl>https://github.com/mbrit/MetroLog</projectUrl>
- <requireLicenseAcceptance>false</requireLicenseAcceptance>
- <description>MetroLog is a lightweight logging framework designed for portable. Although the API is based on NLog and log4net, the intention is that it's a very basic logging system.
-
-This version targets .NET 4.5 and .NET Core 4.5 (Windows Store apps)</description>
- <summary />
- <releaseNotes>Collapsed into a single NuGet package using the new PCL support</releaseNotes>
- <tags>Logging WinRT NLog log4net portable pcl</tags>
- </metadata>
- <files>
- <file src="..\MetroLog\bin\Release\MetroLog.dll" target="lib\net45\MetroLog.dll" />
- <file src="..\MetroLog.NetFx\bin\Release\MetroLog.NetFx.dll" target="lib\net45\MetroLog.NetFx.dll" />
- <file src="..\MetroLog.NetFx\bin\Release\MetroLog.NetFx.pdb" target="lib\net45\MetroLog.NetFx.pdb" />
- <file src="..\MetroLog\bin\Release\MetroLog.pdb" target="lib\net45\MetroLog.pdb" />
- <file src="..\MetroLog\bin\Release\MetroLog.dll" target="lib\netcore45\MetroLog.dll" />
- <file src="..\MetroLog.NetCore\bin\Release\MetroLog.NetCore.dll" target="lib\netcore45\MetroLog.NetCore.dll" />
- <file src="..\MetroLog.NetCore\bin\Release\MetroLog.NetCore.pdb" target="lib\netcore45\MetroLog.NetCore.pdb" />
- <file src="..\MetroLog.NetCore\bin\Release\MetroLog.NetCore.pri" target="lib\netcore45\MetroLog.NetCore.pri" />
- <file src="..\MetroLog\bin\Release\MetroLog.pdb" target="lib\netcore45\MetroLog.pdb" />
- <file src="..\MetroLog\bin\Release\MetroLog.dll" target="lib\portable-net45+win8\MetroLog.dll" />
- <file src="..\MetroLog\bin\Release\MetroLog.pdb" target="lib\portable-net45+win8\MetroLog.pdb" />
- <file src="..\**\*.cs" target="src" exclude="..\_ReSharper.*\**\*.*;..\packages\**\*.*;..\**\Debug\**\*.*" />
- </files>
-</package>
1  pack.cmd
View
@@ -0,0 +1 @@
+.nuget\nuget.exe pack MetroLog.nuspec -Symbols
Please sign in to comment.
Something went wrong with that request. Please try again.