Attaching more than one attachment
Re: Attaching more than one attachment
OK but is this slowing up my startup?
Do I need to send you the screencaptures?
Do I need to send you the screencaptures?
-
Campbell
- Site Admin
- Posts: 405
- Joined: Sun 14 Jul, 2024 10:21 am
- Location: Edinburgh, Scotland
- Contact:
Re: Attaching more than one attachment
I don't think the price updates will be slowing the start-up, you can see they all happen within a few milliseconds. But something certainly seems to be, and I'll try and work out what.
Yes please, if you can send me a screen capture that would be very helpful.
Yes please, if you can send me a screen capture that would be very helpful.
-
Campbell
- Site Admin
- Posts: 405
- Joined: Sun 14 Jul, 2024 10:21 am
- Location: Edinburgh, Scotland
- Contact:
Re: Attaching more than one attachment
I've added some additional logging in v1.7.5.2 on startup, to try to narrow down where the delay is. You may need to add the following section to the nlog config file to see all the new entries:
Code: Select all
<logger name="*" minlevel="Trace" maxLevel="Debug" writeTo="logfile" >
<filters defaultAction="Ignore">
<when condition="'${event-properties:item=Category}' == 'General'" action="Log" />
</filters>
</logger>
Re: Attaching more than one attachment
I changed the log - see attachment.
I first updated the program.
After that it restarted 3 times very fast. I thought the issue was solved.
But when I restarted again later it was slow again.
How do I add the log file here?
I first updated the program.
After that it restarted 3 times very fast. I thought the issue was solved.
But when I restarted again later it was slow again.
How do I add the log file here?
-
Campbell
- Site Admin
- Posts: 405
- Joined: Sun 14 Jul, 2024 10:21 am
- Location: Edinburgh, Scotland
- Contact:
Re: Attaching more than one attachment
Attaching log files in the forum was disabled by default. I've enabled this now.
-
Campbell
- Site Admin
- Posts: 405
- Joined: Sun 14 Jul, 2024 10:21 am
- Location: Edinburgh, Scotland
- Contact:
Re: Attaching more than one attachment
I'm not seeing the new logging, but just realised I think you added the new section (highlighted in red in your image) in the wrong place. It should be before the </rules> entry, not after. Can you move it up a section and try again please, and we should see some additional entries in the log.
Re: Attaching more than one attachment
I changed the loging file:
<?xml version="1.0" encoding="windows-1252" ?>
<!-- XSD manual extracted from package NLog.Schema: https://www.nuget.org/packages/NLog.Schema-->
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd">
autoReload="true"
internalLogFile="c:\temp\console-example-internal.log"
internalLogLevel="Info" >
<!-- the targets to write to -->
<targets>
<!-- write logs to file -->
<target xsi:type="File" name="logfile" fileName="D:\Mijn Documenten\OneDrive\MaximMoney\maxim.log"
layout="${longdate} [${level} ${event-properties:item=Category}]: ${message} ${exception:format=tostring}" />
</targets>
<!-- rules to map from logger name to target -->
<rules>
<logger name="*" minlevel="Info" writeTo="logfile" />
<logger name="*" minlevel="Trace" maxLevel="Debug" writeTo="logfile" >
<filters defaultAction="Ignore">
<when condition="'${event-properties:item=Category}' == 'Pricing'" action="Log" />
</filters>
</logger>
<logger name="*" minlevel="Trace" maxLevel="Debug" writeTo="logfile" >
<filters defaultAction="Ignore">
<when condition="'${event-properties:item=Category}' == 'General'" action="Log" />
</filters>
</logger>
</rules>
</nlog>
<?xml version="1.0" encoding="windows-1252" ?>
<!-- XSD manual extracted from package NLog.Schema: https://www.nuget.org/packages/NLog.Schema-->
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd">
autoReload="true"
internalLogFile="c:\temp\console-example-internal.log"
internalLogLevel="Info" >
<!-- the targets to write to -->
<targets>
<!-- write logs to file -->
<target xsi:type="File" name="logfile" fileName="D:\Mijn Documenten\OneDrive\MaximMoney\maxim.log"
layout="${longdate} [${level} ${event-properties:item=Category}]: ${message} ${exception:format=tostring}" />
</targets>
<!-- rules to map from logger name to target -->
<rules>
<logger name="*" minlevel="Info" writeTo="logfile" />
<logger name="*" minlevel="Trace" maxLevel="Debug" writeTo="logfile" >
<filters defaultAction="Ignore">
<when condition="'${event-properties:item=Category}' == 'Pricing'" action="Log" />
</filters>
</logger>
<logger name="*" minlevel="Trace" maxLevel="Debug" writeTo="logfile" >
<filters defaultAction="Ignore">
<when condition="'${event-properties:item=Category}' == 'General'" action="Log" />
</filters>
</logger>
</rules>
</nlog>
- Attachments
-
maxim.log- (265.35 KiB) Downloaded 22 times