forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Errorlog Creator released

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Other Product Support/Announcements
View previous topic :: View next topic  
Author Message
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Sun May 02, 2004 1:22 pm    Post subject: Errorlog Creator released Reply with quote

Hi, I've released a new VDS (5) tool: the Errorlog Creator.

Description wrote:
Tired of getting those vague emails with 'Hello, I've found an error in your program! It sais that an error number 201 occured at line 2105 occured', and that you'll have to figure out yourself what went wrong?

This this program is the solution! Errorlog Creator scans your script, and generates a seperate script which will create an errorlog with all information available of the enduser's computer, the values of all variables you used, and the content of all lists you used. The errorlog will be created at runtime just by calling the 'errorlog' command.


For more information click here, and click here to download it.

Thanks to Chris, jwfv and Serge for beta-testing Smile

Regards,
Vic

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Sun May 02, 2004 1:24 pm    Post subject: Reply with quote

Here's an example of such an errorlog:
Code:

> Error information
**************************************
Error number: 22
Error line: 54
Date/time: 04-07-2004 14:39:33


> System information
**************************************
Free memory: 44564 kB
Screen resolution: 1024 x 1280
Windows version number and build: 5.1|2600
Is 32 bit version of Windows: 1
Elapsed time since last system start: 5:16:01:17
Extra Windows information: Service Pack 1
Is a member of the Windows NT family: 1
Language-id: $13


> Content of variables
**************************************
%%MyVar: Hello!
%%Variable2: Blahblah
%%Variable3: Hey!
%%Variable4: How are you??
%%Name: I think we have enough variables...
%%MyLastVar: goodbye!
%%List: 4


> Content of list 1
**************************************
1
3138
86104
37224
42567



> Content of list 2
**************************************
8202
47479
7057
77465
32792



> Content of list 3
**************************************
69767
84416
71797
30664
16263
32949
27903



> Content of list 4
**************************************
48176
14919
82727
2030


Vic

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
Protected
Valued Contributor
Valued Contributor


Joined: 02 Jan 2001
Posts: 228
Location: Portugal

PostPosted: Tue May 04, 2004 8:22 am    Post subject: Reply with quote

Sounds cool. I wish I had VDS 5...
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Fri May 07, 2004 2:38 pm    Post subject: Reply with quote

Well... it is possible to use it with vds 4. Just open 'errorlog.dsc', and copy the code into your script. Then goto the 'errorlog' label and the log will be created.

Perhaps it would be a good idea to make Errorlog Creator compatible with vds 5 and lower Wink

Regards,
Vic

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Tue Jan 02, 2007 3:02 am    Post subject: Reply with quote

Hi Vic,

Very cool little application.

But (there's always a but after a compliment Wink) as I'm unable to send attachments using window's mailto I've been trying to add the contents of errorlog.log to the body of the message. Hmm, my question is more mailto: related than 'Error Log Creator' related...

So far I'm reading the log file into a list, and then copying each line into another list with "%AO" prepended to the line. %AO is a line break in emails (for anyone who doens't know). The problem is the list stops at almost the same place every time (sometimes one line before or after).

Code:
      errorlog
      rem wait 2
      list create,20
      list create,21
      list loadfile,20,@path(%0)errorlog.log
      %f =
rem      list add,21,@chr(34)"%0A"
      list add,21,"%0A"
      repeat
        list add,21,"%0A"
        %f = %f@next(21)
        list add,21,@next(20)
      until @not(@ok())
rem      list add,21,@chr(34)
      list close,20
      list close,21
rem      shell open,"mailto:support@toppytools.com?subject=Runtime Error in "%%ProgName"&body="%%ProgName" v"%%Build" had a Runtime Error "@error(E)" at line "@error(N)" ["%V"]"
      shell open,"mailto:support@toppytools.com?subject=Runtime Error in "%%ProgName"&body=Hi Dave, %0A%0A%0A%0A%0A****** ToppyTools Suite version "%%SuiteVersion" ******%0A"%%ProgName" v"%%Build" had a Runtime Error "@error(E)" at line "@error(N)" ["%V"]%0A"@chr(34)%f@chr(34)


Also, some variable names do not display correctly in the email:
%%Balloon: displays as %ºlloon:
%%DDEcommand displays as %İEcommand:
"%%Delay": displays as %Şlay:

Obviously %BA, %DD and %DE are ASCII hex codes used in emails. I can rename my variabls to get around this.

Hmm, as I typed this I believe I've found the answer to my problem. Apparently, the entire mailto: string is limited to 256 characters...

_________________
cheers

Dave
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Mon Jul 03, 2017 4:08 pm    Post subject: Reply with quote

Hey Vic,

I don't suppose you could share the source for this? It use it a lot and works great. I do end up editing the script created with my own additions, but I have to do that each time. I was going to make my own, but I thought I would see if you were around and would share the source.

Thanks in advance!
Chris

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Tue Jul 04, 2017 12:02 am    Post subject: Reply with quote

I got impatient and ended up making my own Smile
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Tue Jul 04, 2017 5:01 pm    Post subject: Reply with quote

Is it's things like this that always made VDS so freaking GREAT! Smile
_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Other Product Support/Announcements All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group