Permalink
Browse files

added some unique logging so that appharbor will pick up my log messages

  • Loading branch information...
1 parent dff9c42 commit f2e2c60a6738fa123ed64e9823ae995929cf06c4 @randyburden committed Apr 29, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 src/Scrumee.Web/Global.asax.cs
@@ -4,6 +4,7 @@
using System.Linq;
using System.Reflection;
using System.Web;
+using System.Web.Management;
using System.Web.Mvc;
using System.Web.Routing;
using Scrumee.Repositories;
@@ -67,6 +68,8 @@ public static void LoadAllBinDirectoryAssemblies()
try
{
Assembly loadedAssembly = Assembly.LoadFile( dll );
+
+ new LogEvent( "Successfully loaded: " + dll ).Raise();
}
catch ( FileLoadException loadEx )
{ } // The Assembly has already been loaded.
@@ -75,5 +78,16 @@ public static void LoadAllBinDirectoryAssemblies()
} // foreach dll
}
+
+
+ }
+
+ public class LogEvent : WebRequestErrorEvent
+ {
+ public LogEvent( string message )
+ : base( null, null, 100001, new Exception( message ) )
+ {
+ System.Diagnostics.Trace.WriteLine( message );
+ }
}
}

0 comments on commit f2e2c60

Please sign in to comment.