September 25th, 2012, 10:38 AM
Log file Creation ?
Can u guys help me with the best methods to create the LOG files for an application with examples, Rather than using third party applications.
Thanks in advance...
September 25th, 2012, 05:06 PM
Probably not exactly what you wanted; but you said no third party components.
Assuming that that includes the Codesite component that is part of recent Delphi versions:-
What I did (a long time ago) in the interest of not writing the same code more than once
is to build myself a small logging component that, internally, understands how to open a file, write to it and close it.
I then gave it a few properties.
FileName: String - obvious purpose
TimeStamp: Boolean - whether to add a timestamp to each entry
Enabled: Boolean - whether or not to write to the file
And some methods like:
This is the bare bones.
Naturally you can add as much sophistication as you want.
September 26th, 2012, 01:48 AM
Originally Posted by clivew
First of All,Thanks for the reply Clive.
Right now i'm using Eureka log component.
Using that i can find the error and its exact place where it occurs. but i wants a tool like SQL SERVER Profiler to find out, parameters and it's values passed for all the functions in our code and it's flow.
Is there any tool or technique ?
Thanks in advance.
September 27th, 2012, 08:57 PM
I am not familiar with the tools you mention.
Am I right in thinking that you want something that actually hooks into your code and
reports on things without you actually inserting the log writing statements?
Does AQTime that comes with Delphi recent releases (or the professional version) help?
September 28th, 2012, 01:19 AM
You may want to check Code Site. Its lite version (they name it Code Site Express) comes with Delphi XE2. I don't know with XE3.
Originally Posted by Murugavel
Last edited by Luthfi; September 29th, 2012 at 05:29 AM.