log viewer

By Gex on Jan 24, 2006

load to your remotes and write /log.viewer or click log viewer from the menubar..note:logviewer view the log files present in $logdir ( the log directory u setting in ur mirc options )

alias log.viewer {
  if (!$window(@logviewer)) {
    /window -CkSzl18  @LogViewer
    var %trash " $+ $findfile($logdir,*.log,@LogViewer,aline -l @LogViewer $gettok($nopath($1-),1,46)) $+ "
  }
  else {
 echo -a LogViewer is currently running
 }
}
menu @LogViewer {
  dclick { 
    clear @LogViewer
    .loadbuf -e @LogViewer " $+  $findfile($logdir,$+ $sline(@LogViewer,1) $+ .log,1) $+ " 0
  }
  stats {
    echo -a 12[!] 4there are currently 12 $+ $findfile($logdir,*.log,0) 4log files
  }
}
menu menubar,channel {
  Log Viewer:/log.viewer
}

Comments

Sign in to comment.
No0ne   -  Jan 27, 2006

If you had combined this with like 3 other snippets into one. And had posted/submited that you might have gotten a higher score, due to more content. I wouldn\'t be to worked up about it. You\'ve posted several snippets, and have a high Mature Score.

 Respond  
RoninWarrior   -  Jan 27, 2006

gex the reason why it isnt a 10/10 is because people who come and see what you and everyone else posts here might not see it as a 10 like you i have seen alot of stuff on here get awsome reviews and it doesnt amount to a pile of dog poop but you have to look at what you posted a simple log viewer mirc already has a log viewer built in and alot of people see that and no that and will look at your snippet as being not usefull at all even if it had a 1000 lines of flawless hard code every body rates diffrently you get that on all mirc related site that takes snippets addons and scripts you have to look past the scoreing and think of how many people will use t his in the next year or so possiably 1000\'s of people could when i posted my simple log viewer on a diffrent site i got a score of 3 and it isnt no bigger then what you posted but it did get downloaded 20+ time the first day i posted it that alone was good enough for me ,im sure if you add a nice dialog and maybe DCX or MDX to it you will probally get alot better of a score

 Respond  
noMen   -  Jan 27, 2006

Lol, I like this discussion :) $findfile returns a value, it is quite logical to catch that in a variable. It looks a bit stupid to me to echo something and at the same time to prevent it being echoed ... But that\'s personal taste.

 Respond  
Gex   -  Jan 27, 2006

nooooooooo...i didnt mean that...u c..u got me wrong i meant by why its not 10/10 that i want to know what is the drawbacks that makes it 5. damn am not that stupid lol

 Respond  
Yoinx   -  Jan 27, 2006

\" let the rater tell me y its 5/10 and not 10/10 ???\"

I believe you said that. Hence, you\'re complaining about your score.

I wasnt saying the snippet needs to be long, you just have it 5 lines longer than it needs to be in the first place, so its not gonna be a 10/10, since its not perfectly coded.

and about that var being the only thing to prevent an error. I\'ll call your attention to the help file (another reason I would say this wouldnt have even been a 5)

/help /echo
and find this line:
The -q switch makes it not display the text if called from an alias using the . prefix.

SO um.. You couldnt find any way to prevent the error, besides setting a useless variable? clears throat yeah. You should try reading some more in the help file, THEN ask for 10/10 on your snippets.

 Respond  
Gex   -  Jan 27, 2006

guys whats up i dont beg for score...???i was just wondering...its ok its now 3.0 :D its ok

 Respond  
noMen   -  Jan 27, 2006

I partly agree with Yoinx, mIRC\'s logviewing feature does the same job and begging for a rate is a bit childish. But using var %trash is good coding practice when you use $findfile in this way, I think. And I hate pipes, { } makes the code clear to understand.

 Respond  
Gex   -  Jan 27, 2006

Okay i will tell u..the snippet isnt with the number of the lines but with the quality and functionality..beside that//the var %trash was the only way to prevent the error from showing...u can replace it with echo or anythg it will give stupid echo in the status window :) in addition that i didnt say i want 10/10 ..... but i didnt make that snippet that fast or that easy to recieve only 5....anyway i am still saying this deserves more than 5 because it does what its supposed to do. it has no bugs.i c its high quality.....err handling..evry thg so what r u up for....number of lines?ummm i have an addon of 400 lines .. i made in 15 mins.... easy with low quality..whearas i have another 49 lines i made in 3 weeks.....so quit it

 Respond  
Yoinx   -  Jan 27, 2006

Man, I hate seeing people complain about a 5/10 on a 15 line snippet that doesnt really do anything besides keep you from having to open a text document. The script really doesnt do much. It loadbufs a text document into a window \"QUICK GIVE IT A 10/10\" seriously. And even as it is, you still have command prefixes in your script, and 5 lines of {}\'s that you dont even need.

Then this line.

var %trash \" $+ $findfile($logdir,*.log,@LogViewer,aline -l @LogViewer $gettok($nopath($1-),1,46)) $+ \"

why are you setting a variable that you never reference again?

For usefulness I\'d say maybe 2/10 - i can just open a text document to read the log.
For the scripting, maybe 3/10 maybe 4/10 - You still have command prefixes, unnecessary brackets, and you\'re setting a useless variable

SO Like I said, quit complaining when people rate you higher than you deserve in the first place ffs.

 Respond  
Gex   -  Jan 27, 2006

5.0 isnt much..but am sure that if i submitted this in a site with good rating system it will give 4/5 not 5/10 lol okay let the rater tell me y its 5/10 and not 10/10 ???

 Respond  
Gex   -  Jan 27, 2006

thanks midnight

 Respond  
No0ne   -  Jan 26, 2006

Sorry it took me long to rate. Just now able to do so.

 Respond  
Midnight   -  Jan 26, 2006

This is very nice, Usefull. Instead of downloading a whole Log Viewer.

 Respond  
Gex   -  Jan 26, 2006

guys this script and others are kept without rating for 3 days now...am asking raters and reviewers to rate the unrated scripts.

 Respond  
Gex   -  Jan 24, 2006

for any bugs let me know..will be glad to if i recieved new ideas to add on this snipp.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.