Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Store Seconds in the log file?
Message
 
 
To
09/01/2023 07:02:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01685718
Message ID:
01685746
Views:
24
>>Hi,
>>
>>I have two questions, please.
>>
>>1. Does it make sense to store seconds in a log file of problems? I use two approach (I know I should be consistent). In some functions/methods I store the SECONDS in the log file. As:
>>
>>12/21/2021 10:03:03 PM
>>
>>Some other LOG files I set the SECONDS off (using SET SECONDS OFF). So the log file would have an entry starting with
>>
>><pre>
>>12/21/2021 10:03 PM
>>
>>I was just wondering, what do you think should be a good practice? At least, in your app, do you remove seconds?
>>
>
>Absolutely yes on seconds. I've been doing a lot of debugging lately that involves looking at multiple logs and having seconds means I can sync them; that is, I can see what different logs are telling me about what happened at the same time.
>
>Tamar

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform