Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logs in subfolders are not included #34

Open
bjarnef opened this issue May 14, 2018 · 5 comments
Open

Logs in subfolders are not included #34

bjarnef opened this issue May 14, 2018 · 5 comments

Comments

@bjarnef
Copy link

bjarnef commented May 14, 2018

When packages log files in subfolders it seems these are not included, e.g. the QuickPayV10 for UCommerce https://github.com/Pragmasoft/uCommerce.QuickpayV10 which writes logs in a subfolder /App_Data/Logs/Pragmasoft/QuickpayV10.txt but this is not visible in Diploy Trace Log Viewer.

@DanDiplo
Copy link
Owner

I wasn't aware of any package that logged into sub-folders. Are these log files the exact same format as the Umbraco ones? The log viewer is really just for umbraco log format, it can't display other formats.

@bjarnef
Copy link
Author

bjarnef commented May 14, 2018

Not quite, it looks like this:

03/05/2018 15:43:26: Payment definition created.
03/05/2018 15:43:26: Payment method created and saved.
04/24/2018 08:20:25: Exception: 
System.Net.WebException: Fjernserveren returnerede en fejl: (400) Forkert anmodning.
   ved System.Net.HttpWebRequest.GetResponse()
   ved Pragmasoft.QuickpayV10.Extensions.Services.QuickpayV10Repository.GetResponse(PaymentProperties paymentProperties, String resource, String method)
04/24/2018 08:21:46: Exception: 
System.Net.WebException: Fjernserveren returnerede en fejl: (400) Forkert anmodning.
   ved System.Net.HttpWebRequest.GetResponse()
   ved Pragmasoft.QuickpayV10.Extensions.Services.QuickpayV10Repository.GetResponse(PaymentProperties paymentProperties, String resource, String method)
04/24/2018 08:23:07: Exception: 
System.Net.WebException: Fjernserveren returnerede en fejl: (400) Forkert anmodning.
   ved System.Net.HttpWebRequest.GetResponse()
   ved Pragmasoft.QuickpayV10.Extensions.Services.QuickpayV10Repository.GetResponse(PaymentProperties paymentProperties, String resource, String method)
04/24/2018 08:46:03: Exception: 
System.Net.WebException: Fjernserveren returnerede en fejl: (400) Forkert anmodning.
   ved System.Net.HttpWebRequest.GetResponse()
   ved Pragmasoft.QuickpayV10.Extensions.Services.QuickpayV10Repository.GetResponse(PaymentProperties paymentProperties, String resource, String method)
04/24/2018 09:24:07: Exception: 
System.Net.WebException: Fjernserveren returnerede en fejl: (400) Forkert anmodning.
   ved System.Net.HttpWebRequest.GetResponse()
   ved Pragmasoft.QuickpayV10.Extensions.Services.QuickpayV10Repository.GetResponse(PaymentProperties paymentProperties, String resource, String method)
04/24/2018 09:41:37: Exception: 
System.Net.WebException: Fjernserveren returnerede en fejl: (400) Forkert anmodning.
   ved System.Net.HttpWebRequest.GetResponse()
   ved Pragmasoft.QuickpayV10.Extensions.Services.QuickpayV10Repository.GetResponse(PaymentProperties paymentProperties, String resource, String method)

or

04/18/2018 09:06:02: Exception: 
System.InvalidOperationException: Payment with id: 57 is not of state pending authorization. Status is: Authorized
   at UCommerce.Transactions.Payments.Common.GuardExtensions.PaymentNotPendingAuthorization(Guard guard, Payment payment)
   at Pragmasoft.QuickpayV10.Extensions.Services.QuickpayV10PaymentMethodService.ProcessCallback(Payment payment)
04/20/2018 12:19:48: Exception: 
System.InvalidOperationException: Payment with id: 60 is not of state pending authorization. Status is: Authorized
   at UCommerce.Transactions.Payments.Common.GuardExtensions.PaymentNotPendingAuthorization(Guard guard, Payment payment)
   at Pragmasoft.QuickpayV10.Extensions.Services.QuickpayV10PaymentMethodService.ProcessCallback(Payment payment)
05/08/2018 12:59:42: Exception: 
System.InvalidOperationException: Payment with id: 68 is not of state pending authorization. Status is: Authorized
   at UCommerce.Transactions.Payments.Common.GuardExtensions.PaymentNotPendingAuthorization(Guard guard, Payment payment)
   at Pragmasoft.QuickpayV10.Extensions.Services.QuickpayV10PaymentMethodService.ProcessCallback(Payment payment)
05/09/2018 12:40:58: Exception: 
System.InvalidOperationException: Payment with id: 69 is not of state pending authorization. Status is: Authorized
   at UCommerce.Transactions.Payments.Common.GuardExtensions.PaymentNotPendingAuthorization(Guard guard, Payment payment)
   at Pragmasoft.QuickpayV10.Extensions.Services.QuickpayV10PaymentMethodService.ProcessCallback(Payment payment)
05/09/2018 12:58:56: Exception: 
System.InvalidOperationException: Payment with id: 70 is not of state pending authorization. Status is: Authorized
   at UCommerce.Transactions.Payments.Common.GuardExtensions.PaymentNotPendingAuthorization(Guard guard, Payment payment)
   at Pragmasoft.QuickpayV10.Extensions.Services.QuickpayV10PaymentMethodService.ProcessCallback(Payment payment)
05/14/2018 09:50:41: Exception: 
System.NullReferenceException: Object reference not set to an instance of an object.
   at Pragmasoft.QuickpayV10.Extensions.Services.QuickpayV10PaymentMethodService.ProcessCallback(Payment payment)
05/14/2018 09:50:47: Exception: 
System.NullReferenceException: Object reference not set to an instance of an object.
   at Pragmasoft.QuickpayV10.Extensions.Services.QuickpayV10PaymentMethodService.ProcessCallback(Payment payment)
05/14/2018 09:56:45: Exception: 
System.NullReferenceException: Object reference not set to an instance of an object.
   at Pragmasoft.QuickpayV10.Extensions.Services.QuickpayV10PaymentMethodService.ProcessCallback(Payment payment)
05/14/2018 10:08:48: Exception: 
System.NullReferenceException: Object reference not set to an instance of an object.
   at Pragmasoft.QuickpayV10.Extensions.Services.QuickpayV10PaymentMethodService.ProcessCallback(Payment payment)
05/14/2018 10:11:57: Order () was canceled because the payment was in testmode.

I am not sure is there is an easy way to include these or if is possible at the moment?

@DanDiplo
Copy link
Owner

Unfortunately there's no easy way. The log file formats have no natural delimiters so requires some heavy regex to break down the fields - it simply wouldn't recognize the fields in this format, I don't think.

@bjarnef
Copy link
Author

bjarnef commented May 14, 2018

Okay makes sense. Not sure if these logs can be includes in a different way, maybe under a separate node. But I noticed this, so I would report it here and maybe you or other have some ideas what to do with these.

Theoretically package developers could log files in any format and is deep nesting folders, which not is recommended.

@bjarnef
Copy link
Author

bjarnef commented May 14, 2018

I have suggested they move the location of the file and the format of the data in this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants