diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-23 12:03:18 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-23 12:03:18 +0300 |
| commit | 1f2ebb7e81e6082ec31f3febbcf0f777263679aa (patch) | |
| tree | 97fae56feb42f796e0fa08bc67c28bb319ef97f1 /Software/Visual_Studio/Tango.Logging/LogManager.cs | |
| parent | dc774f2956a749a9054aad17b04a202d5373548d (diff) | |
| download | Tango-1f2ebb7e81e6082ec31f3febbcf0f777263679aa.tar.gz Tango-1f2ebb7e81e6082ec31f3febbcf0f777263679aa.zip | |
Changed versions to per assembly.
Diffstat (limited to 'Software/Visual_Studio/Tango.Logging/LogManager.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Logging/LogManager.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Logging/LogManager.cs b/Software/Visual_Studio/Tango.Logging/LogManager.cs index 5badff595..c0a8409ef 100644 --- a/Software/Visual_Studio/Tango.Logging/LogManager.cs +++ b/Software/Visual_Studio/Tango.Logging/LogManager.cs @@ -210,6 +210,23 @@ namespace Tango.Logging } /// <summary> + /// Logs the current referenced assemblies in the app domain. + /// </summary> + public void LogReferencedAssemblies() + { + String log = "--------------------- Referenced Assemblies --------------------------" + Environment.NewLine + Environment.NewLine; + + foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies()) + { + log += a.GetName().Name + ", v" + a.GetName().Version + Environment.NewLine; + } + + log += Environment.NewLine + "--------------------- --------------------- --------------------------"; + + Log(log); + } + + /// <summary> /// Add new message log item. /// </summary> /// <param name="message">Message.</param> |
