Started adding a way to get the filename and linenumber, thiugh seems inpossible in .NET 4.0, .NET 4.5 looks promising http://msdn.microsoft.com/en-au/library/hh534540.aspx