diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-02-09 00:15:09 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-02-09 00:15:09 +0200 |
| commit | c9597d3b4a053b7a1246419cb31517dd9f530543 (patch) | |
| tree | 0ff985015cc4c6a6bf0b5bdefa6ff9726d5de422 /Software/Visual_Studio/Tango.Logging | |
| parent | af1c7bd1b6122c1387fe6e2749f9847f4be84b16 (diff) | |
| download | Tango-c9597d3b4a053b7a1246419cb31517dd9f530543.tar.gz Tango-c9597d3b4a053b7a1246419cb31517dd9f530543.zip | |
Working on azure utils...
Fixed issue with TangoWebApplication logging.
Diffstat (limited to 'Software/Visual_Studio/Tango.Logging')
| -rw-r--r-- | Software/Visual_Studio/Tango.Logging/LogManager.cs | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/Software/Visual_Studio/Tango.Logging/LogManager.cs b/Software/Visual_Studio/Tango.Logging/LogManager.cs index 4f5bbb2ca..bbc6baf57 100644 --- a/Software/Visual_Studio/Tango.Logging/LogManager.cs +++ b/Software/Visual_Studio/Tango.Logging/LogManager.cs @@ -206,20 +206,24 @@ namespace Tango.Logging { String log = "--------------------- Referenced Assemblies --------------------------" + Environment.NewLine + Environment.NewLine; - string codeBase = typeof(LogManager).Assembly.CodeBase; - UriBuilder uri = new UriBuilder(codeBase); - string path = Uri.UnescapeDataString(uri.Path); - String folder = Path.GetDirectoryName(path); - - foreach (var file in Directory.GetFiles(folder, "*.dll")) + try { - FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(file); - string version = fvi.ProductVersion; - log += Path.GetFileNameWithoutExtension(file) + ", v" + version + Environment.NewLine; - } + string codeBase = typeof(LogManager).Assembly.CodeBase; + UriBuilder uri = new UriBuilder(codeBase); + string path = Uri.UnescapeDataString(uri.Path); + String folder = Path.GetDirectoryName(path); + + foreach (var file in Directory.GetFiles(folder, "*.dll")) + { + FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(file); + string version = fvi.ProductVersion; + log += Path.GetFileNameWithoutExtension(file) + ", v" + version + Environment.NewLine; + } - log += Environment.NewLine + "--------------------- --------------------- --------------------------"; + log += Environment.NewLine + "--------------------- --------------------- --------------------------"; + } + catch { } Log(log); } |
