You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/Spring/Spring.Data.NHibernate.Northwind/src/Spring.Northwind.Service/Service/FedExShippingService.cs
+1-1
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ public class FedExShippingService : IShippingService
33
33
34
34
publicvoidShipOrder(Orderorder)
35
35
{
36
-
log.Info("Shipping order id = "+order.Id);
36
+
log.LogInformation("Shipping order id = {OrderId} ",order.Id);
Copy file name to clipboardExpand all lines: examples/Spring/Spring.Data.NHibernate.Northwind/src/Spring.Northwind.Service/Service/FulfillmentService.cs
+2-2
Original file line number
Diff line number
Diff line change
@@ -90,13 +90,13 @@ public void ProcessCustomer(string customerId)
90
90
{
91
91
if(order.ShippedDate.HasValue)
92
92
{
93
-
log.Warn("Order with "+order.Id+" has already been shipped, skipping.");
93
+
log.LogWarning("Order {OrderId} has already been shipped, skipping.",order.Id);
94
94
continue;
95
95
}
96
96
97
97
//Validate Order
98
98
Validate(order);
99
-
log.Info("Order "+order.Id+" validated, proceeding with shipping..");
99
+
log.LogInformation("Order {OrderId} validated, proceeding with shipping..",order.Id);
Copy file name to clipboardExpand all lines: examples/Spring/Spring.MsmqQuickStart/src/Spring/Spring.MsmqQuickStart.Server/Gateways/MarketDataServiceGateway.cs
+3-3
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,9 @@ public void SendMarketData()
29
29
while(true)
30
30
{
31
31
stringdata=GenerateFakeMarketData();
32
-
log.Info("Sending market data.");
32
+
log.LogInformation("Sending market data.");
33
33
MessageQueueTemplate.ConvertAndSend(data);
34
-
log.Info("Sleeping "+sleepTimeInSeconds+" seconds before sending more market data.");
34
+
log.LogInformation("Sleeping {SleepTimeSeconds} seconds before sending more market data.",sleepTimeInSeconds);
Copy file name to clipboardExpand all lines: examples/Spring/Spring.NmsQuickStart/src/Spring/Spring.NmsQuickStart.Server/Gateways/MarketDataServiceGateway.cs
+2-2
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,9 @@ public void SendMarketData()
29
29
while(true)
30
30
{
31
31
IDictionarydata=GenerateFakeMarketData();
32
-
log.Info("Sending market data.");
32
+
log.LogInformation("Sending market data.");
33
33
NmsTemplate.ConvertAndSend(data);
34
-
log.Info("Sleeping "+sleepTimeInSeconds+" seconds before sending more market data.");
34
+
log.LogInformation("Sleeping {SleepTimeInSeconds} seconds before sending more market data.",sleepTimeInSeconds);
Copy file name to clipboardExpand all lines: examples/Spring/Spring.NmsQuickStart/test/Spring/Spring.NmsQuickStart.Tests/Spring.NmsQuickStart.Tests.csproj
logger.Info(string.Format("Creating implicit proxy for object '{0}' with {1} common interceptors and {2} specific interceptors",targetName,nrOfCommonInterceptors,nrOfSpecificInterceptors));
517
+
logger.LogInformation(string.Format("Creating implicit proxy for object '{0}' with {1} common interceptors and {2} specific interceptors",targetName,nrOfCommonInterceptors,nrOfSpecificInterceptors));
518
518
}
519
519
520
520
@@ -576,7 +576,7 @@ public object PostProcessBeforeInstantiation(Type objectType, string objectName)
576
576
{
577
577
if(logger.IsEnabled(LogLevel.Debug))
578
578
{
579
-
logger.Debug(string.Format("Did not attempt to autoproxy infrastructure type [{0}]",objectType));
579
+
logger.LogDebug(string.Format("Did not attempt to autoproxy infrastructure type [{0}]",objectType));
580
580
}
581
581
582
582
nonAdvisedObjects.Add(cacheKey);
@@ -587,7 +587,7 @@ public object PostProcessBeforeInstantiation(Type objectType, string objectName)
587
587
{
588
588
if(logger.IsEnabled(LogLevel.Debug))
589
589
{
590
-
logger.Debug(string.Format("Skipping type [{0}]",objectType));
590
+
logger.LogDebug(string.Format("Skipping type [{0}]",objectType));
0 commit comments