-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Oren Novotny
committed
Oct 31, 2012
1 parent
13209b6
commit 7f34d02
Showing
6 changed files
with
63 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,6 @@ | |
_ReSharper.* | ||
*.resharper | ||
*.mdb | ||
*.nupkg | ||
/TestResults | ||
/packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.nuget\nuget.exe pack MetroLog.nuspec -Symbols |