Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Commit

Permalink
Merge pull request #14 from michaeljon/master
Browse files Browse the repository at this point in the history
Added fallback support for in-assembly logger factories if / when a failure to identify additional factories fails.
  • Loading branch information
reuzel committed Sep 5, 2013
2 parents 2f10f20 + 261e116 commit bf082f0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions CqlSharp/Logging/LoggerManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,13 @@ public void LoadLoggerFactories()
}
catch
{
//in case of any loading errors, assume no factories are loaded
LoggerFactories = new List<ILoggerFactory>();
//in case of any loading errors, load only the loggers that we implement
LoggerFactories = new List<ILoggerFactory>()
{
new NullLoggerFactory(),
new ConsoleLoggerFactory(),
new DebugLoggerFactory()
};
}
}
}
Expand Down

0 comments on commit bf082f0

Please sign in to comment.