Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 25th, 2012, 09:38 AM
Murugavel Murugavel is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 28 Murugavel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 52 m 57 sec
Reputation Power: 0
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...

Reply With Quote
  #2  
Old September 25th, 2012, 04:06 PM
clivew clivew is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 2,045 clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 2 h 37 m
Reputation Power: 382
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:
WriteString(msg: string);

This is the bare bones.
Naturally you can add as much sophistication as you want.

HTH: Clive

Reply With Quote
  #3  
Old September 26th, 2012, 12:48 AM
Murugavel Murugavel is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 28 Murugavel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 52 m 57 sec
Reputation Power: 0
Quote:
Originally Posted by clivew
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:
WriteString(msg: string);

This is the bare bones.
Naturally you can add as much sophistication as you want.

HTH: Clive



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.

Reply With Quote
  #4  
Old September 27th, 2012, 07:57 PM
clivew clivew is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 2,045 clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 2 h 37 m
Reputation Power: 382
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?

Clive

Reply With Quote
  #5  
Old September 28th, 2012, 12:19 AM
Luthfi Luthfi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 134 Luthfi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 26 m
Reputation Power: 2
Quote:
Originally Posted by Murugavel
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 ?


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.

Last edited by Luthfi : September 29th, 2012 at 04:29 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Log file Creation ?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap