# Logs became to errors after 12 PM (00:00)

**URL:** <https://forum.log4view.com/t/logs-became-to-errors-after-12-pm-00-00/110>\
**Category:** Log4View Support\
**Created:** [June 19, 2018, 8:31am UTC](https://forum.log4view.com/t/logs-became-to-errors-after-12-pm-00-00/110 "2018-06-19T08:31:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![danivain](https://forum.log4view.com/letter_avatar_proxy/v4/letter/d/d9b06d/32.png) [@danivain](https://forum.log4view.com/u/danivain)\
**Post date:** [June 19, 2018, 8:31am UTC](https://forum.log4view.com/t/logs-became-to-errors-after-12-pm-00-00/110/1 "2018-06-19T08:31:24Z")

</div>

Hi,

I have a 3 issues, after configuring the pattern:

NLog layout:

${time:format=HH:mm:ss} ${logger} ${callsite:className=false:fileName=false:includeSourcePath=false:methodName=true:includeNamespace=false:cleanNamesOfAsyncContinuations=true} : ${LEVEL}, ${message:format=tostring} ${exception:format=tostring}

Didn’t work, so I changed it to:

${time:format=HH:mm:ss} ${logger} ${callsite} : ${LEVEL}, ${message}

The app doesn’t shows method names, for workaround I changes the callsite element to exception element and it worked.

The workaround pattern:  
${time:format=HH:mm:ss} ${logger} ${exception} : ${LEVEL}, ${message}

The second issue related to app that refuses to save a new added columns… (exceptions, methods and etc…)

The third issue is that all logs became to be errors after 12 PM (00:00), this is the most frustrating one.

Besides that I am very pleased from this great tool!!!

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Ulrich](https://forum.log4view.com/user_avatar/forum.log4view.com/ulrich/32/7_2.png) [@Ulrich](https://forum.log4view.com/u/Ulrich)\
**Post date:** [June 19, 2018, 9:24am UTC](https://forum.log4view.com/t/logs-became-to-errors-after-12-pm-00-00/110/2 "2018-06-19T09:24:59Z")

</div>

Hi,

can you please send us a short sample log file to [support@prosa.biz](mailto:support@prosa.biz) which shows the problem.

Ulrich

---

<div class="post-metadata">

**Author:** ![Ulrich](https://forum.log4view.com/user_avatar/forum.log4view.com/ulrich/32/7_2.png) [@Ulrich](https://forum.log4view.com/u/Ulrich)\
**Post date:** [June 23, 2018, 12:16pm UTC](https://forum.log4view.com/t/logs-became-to-errors-after-12-pm-00-00/110/3 "2018-06-23T12:16:53Z")

</div>

Hi Dani,

your problem has mixed causes:

1. Your original NLog layout is not unambiguous. The problem are the last two elements: **${message:format=tostring} ${exception:format=tostring}**  
Message and exception are multiword elements and there is no unique separator between them. So how could Log4View know, where the message ends and the exception begins?  
Insert a unique separator between message and exception (a string combination, that will never appear in any message), for example:

**${time:format=HH:mm:ss} ${logger} ${callsite:className=false:fileName=false:includeSourcePath=false:methodName=true:includeNamespace=false:cleanNamesOfAsyncContinuations=true} : ${LEVEL}, ${message:format=tostring} ||| ${exception:format=tostring}**

1. The parser engine in Log4View didn’t handle some elements in the right way. We have fixed this and the fix will be included in our next release.  
If you want to try the fix, you can download a prerelease version of Log4View 1.2.2 [here](http://www.log4view.com/fileadmin/user_upload/log4view/test/Log4ViewSetup_1.2.2.exe).

---

<div class="post-metadata">

**Author:** ![system](https://forum.log4view.com/images/discourse-logo-sketch-small.png) [@system](https://forum.log4view.com/u/system)\
**Post date:** [June 27, 2018, 11:46am UTC](https://forum.log4view.com/t/logs-became-to-errors-after-12-pm-00-00/110/4 "2018-06-27T11:46:22Z")

</div>

_Guest on Nabble:_ `Dani`

Thanks

For the reply.

I fixed the exception element with ||| as you suggested.

What about the “callsite” and the 12 PM issues, I tried the new version you sent me still couldn’t make it work.

Thank in Advance!

---

<div class="post-metadata">

**Author:** ![Ulrich](https://forum.log4view.com/user_avatar/forum.log4view.com/ulrich/32/7_2.png) [@Ulrich](https://forum.log4view.com/u/Ulrich)\
**Post date:** [June 27, 2018, 12:50pm UTC](https://forum.log4view.com/t/logs-became-to-errors-after-12-pm-00-00/110/5 "2018-06-27T12:50:37Z")

</div>

Hi Dani,

using Log4View 1.2.2, we could read the log file you sent us with the this log pattern:

${time:format=HH:mm:ss} ${logger} ${callsite:className=false:fileName=false:includeSourcePath=false:methodName=true:includeNamespace=false:cleanNamesOfAsyncContinuations=true} : ${LEVEL}, ${message:format=tostring}

Please make sure, that in the receiver settings, the logging framework is set to “NLog”.

Let me know, if this works for you with 1.2.2.

Ulrich

---

<div class="post-metadata">

**Author:** ![system](https://forum.log4view.com/images/discourse-logo-sketch-small.png) [@system](https://forum.log4view.com/u/system)\
**Post date:** [June 27, 2018, 1:04pm UTC](https://forum.log4view.com/t/logs-became-to-errors-after-12-pm-00-00/110/6 "2018-06-27T13:04:48Z")

</div>

_Guest on Nabble:_ `Dani`

Looks like working now, maybe related to Log4net vs NLog, the global layout for NLog is not being saved…

Thanks
