Permalink
Browse files

fix minor bug

  • Loading branch information...
1 parent 124c37f commit 7583f70aa99639ee312383b32b9d78c96e51aa0c @onovotny committed Nov 30, 2012
Showing with 7 additions and 3 deletions.
  1. +1 −1 MetroLog.WinRT/Logger.cs
  2. +1 −1 MetroLog.nuspec
  3. +4 −0 WinJSSample/js/default.js
  4. +1 −1 typescript/MetroLog.WinRT.d.ts
View
@@ -25,10 +25,10 @@ static Logger()
{
MaxLevel = LogLevel.Trace;
- var max = (PclLogLevel)MaxLevel;
_logManager = new Lazy<IWinRTLogManager>(() =>
{
+ var max = (PclLogLevel)MaxLevel;
// Log everything for now
var configuration = new LoggingConfiguration();
configuration.AddTarget(max, PclLogLevel.Fatal, new DebugTarget());
View
@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MetroLog</id>
- <version>0.8.0</version>
+ <version>0.8.1</version>
<title>MetroLog Lightweight Logging for Portable and WinJS</title>
<authors>Matt Baxter-Reynolds,Oren Novotny</authors>
<owners>onovotny</owners>
@@ -3,6 +3,8 @@
(function () {
"use strict";
+ MetroLog.WinRT.Logger.maxLevel = MetroLog.WinRT.LogLevel.info;
+
WinJS.Binding.optimizeBindingReferences = true;
var app = WinJS.Application;
@@ -29,6 +31,8 @@
logger.info("Was activated");
+ logger.trace("Trace Active");
+ logger.debug("Debug active");
if (app.sessionState.history) {
nav.history = app.sessionState.history;
@@ -56,7 +56,7 @@ module MetroLog {
export class Logger {
static getLogger(name : string): ILogger;
static getCompressedLogs(): Windows.Foundation.IAsyncOperation__StorageFile;
-
+ static maxLevel: LogLevel;
static addEventListener(eventName: string, f: Function): void;
static removeEventListener(eventName: string);
}

0 comments on commit 7583f70

Please sign in to comment.