aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration/Storage
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2019-12-06 23:19:25 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2019-12-06 23:19:25 +0200
commit40622a28006ffd38ce5b85ac49502804d65b9357 (patch)
tree617480ff2c2cf999f047b44c1ec5233a11943e34 /Software/Visual_Studio/Tango.Integration/Storage
parent9353670700654d509bac5c001047084576787d33 (diff)
downloadTango-40622a28006ffd38ce5b85ac49502804d65b9357.tar.gz
Tango-40622a28006ffd38ce5b85ac49502804d65b9357.zip
Improved transport and integration layers logging by adding ComponentName and a static counter to all transport components.
Appended the ComponentName and the counter to most of the logging.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/Storage')
-rw-r--r--Software/Visual_Studio/Tango.Integration/Storage/StorageManager.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Storage/StorageManager.cs b/Software/Visual_Studio/Tango.Integration/Storage/StorageManager.cs
index 7db7433fa..2bf2b7364 100644
--- a/Software/Visual_Studio/Tango.Integration/Storage/StorageManager.cs
+++ b/Software/Visual_Studio/Tango.Integration/Storage/StorageManager.cs
@@ -96,7 +96,7 @@ namespace Tango.Integration.Storage
/// <param name="message">The message.</param>
protected void LogRequestSent(IMessage message)
{
- LogManager.Log(String.Format("Sending request '{0}'...{1}{2}", message.GetType().Name, Environment.NewLine, message.ToJsonString()), LogCategory.Debug);
+ LogManager.Log($"{_transporter.ComponentName}: Sending request '{message.GetType().Name}'...\n{message.ToJsonString()}", LogCategory.Debug);
}
/// <summary>
@@ -105,7 +105,7 @@ namespace Tango.Integration.Storage
/// <param name="message">The message.</param>
protected void LogRequestFailed(IMessage message, Exception ex)
{
- LogManager.Log(String.Format("Request failed '{0}'...{1}{2}{1}{3}", message.GetType().Name, Environment.NewLine, message.ToJsonString(), ex.ToString()), LogCategory.Error);
+ LogManager.Log($"{_transporter.ComponentName}: Request failed '{message.GetType().Name}'...\n{message.ToJsonString()}\n{ex.ToString()}", LogCategory.Error);
}
/// <summary>
@@ -114,7 +114,7 @@ namespace Tango.Integration.Storage
/// <param name="message">The message.</param>
protected void LogResponseReceived(IMessage message)
{
- LogManager.Log(String.Format("Response received '{0}'...{1}{2}", message.GetType().Name, Environment.NewLine, message.ToJsonString()), LogCategory.Debug);
+ LogManager.Log($"{_transporter.ComponentName}: Response received '{message.GetType().Name}'...\n{message.ToJsonString()}", LogCategory.Debug);
}
#endregion