Author Topic: log file  (Read 880 times)

Fletch

  • Newbie
  • *
  • Posts: 29
    • View Profile
log file
« on: October 12, 2011, 02:30:19 pm »
There does not seem to be any difference between the simple and details log file.  What extra info is the detailed supposed to show?

In async pro you can log the actual bytes send out and received by the com port.  This is very useful for debugging

Fletch

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: log file
« Reply #1 on: October 12, 2011, 02:55:38 pm »
I have tried the debug setting which only records that 3 bytes have been sent.  It does not record the bytes
that were received at all.

What is very useful is to record the actual bytes sent out of the out buffer and the actual bytes received in the in buffer.  Not just the number of bytes but each byte and its hex value. 

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: log file
« Reply #2 on: October 12, 2011, 03:37:04 pm »
Hello

TnrComm does not log incoming data in dlDebug detail level. It will significant increase log file size. You can make this easy in OnAfterREceive event handler. See Codes demo project.

Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

Fletch

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: log file
« Reply #3 on: October 13, 2011, 07:01:14 am »
Yes it can be done, but it means every time you need to debug a routine, you have to add special code to your app and then remove it afterwards.

What the point of having a debug setting for the log file, if it does not include all the data to debug the comms.  When debugging, it does not matter if the log file get too big. You can just delete it and start again.

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: log file
« Reply #4 on: October 13, 2011, 11:00:55 am »
Hello

TnrLog file can be used in TnrComm together with TnrZModem, TnrKermit, TnrGps and others.
If debug will show all incoming data it will log very big size of data.

Thank you for information we will try do something in the future.

Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

Fletch

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: log file
« Reply #5 on: October 13, 2011, 11:21:28 am »
Thanks

Maybe you can add a separate detail level for that so it wont interfere with the existing ones.