Register Members List Search Today's Posts Mark Forums Read

Mod Options
Dev Debug Log Details »
Dev Debug Log
Mod Version: 0.2, by sweede (Member) sweede is offline
Developer Last Online: Jun 2014 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.x Rating: (0 vote - 0 average) Installs: 4
Released: 22 Apr 2008 Last Update: 23 Apr 2008 Downloads: 53
Not Supported DB Changes Uses Plugins Additional Files Re-usable Code Translations  

This is my basic logging mechanism used in two of my current vbulletin products.

Instead of writing a text file to the file system which may or may not have been the best thing to do, i instead wrote this small plugin to facilitate logging to a database table instead.

Upload the contents of the upload folder to your vbulletin root directory.
Install the product XML file.

There are no options that need to be set (they should be turned on/off in your plugin code).

Main Class is called DebugLog. It has one class variable, product, and two class methods, set and log.

Log takes up to 4 arguments.
log($log, $location = '', $line = '', $extra = '' )
$log is the string, array or object of the data you wish to save.
$location is commonly the function or method that you are logging.
$line is commonly __LINE__ , but in a plugin this may or may not work,
so you can set this number manually if you wish
$extra is extra information about the data you are logging such as "should never be 0"
Set takes two arguments.
set($var, $value)
$var is the variable name (currently only product is a valid variable to set).
$value is the value you wish $var to be.
in your plugin, it is advisable to setup your own debug class wrapper around the DevLog class

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

you can also call the class staticly

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You cannot set the product with this method so it defaults to devlog

Viewing Logs:
Admincp -> Devlog ->View Logs

This is -very very- basic and will gradually be expanded. As it currently is, it will be enough to assist in debugging current problems with my plugins.

v0.1 - Release
v0.2 - Cosmetic - Added Line numbers to debug log output.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
KX - Debug Mode Ziki vBulletin 3.8 Add-ons 29 18 Jul 2012 08:38

Old 22 Apr 2008, 23:06
sweede's Avatar
sweede sweede is offline
Join Date: Jan 2007
Some images of the AdminCP area
Attached Images
File Type: jpg LogDisplayWindow.jpg (29.9 KB, 87 views)
File Type: jpg MainWindowDevLog.jpg (51.8 KB, 91 views)
File Type: jpg ProductSelectionTable.jpg (42.8 KB, 75 views)

Last edited by sweede; 23 Apr 2008 at 05:52.
Reply With Quote
Old 22 Apr 2008, 23:13
sweede's Avatar
sweede sweede is offline
Join Date: Jan 2007
Reply With Quote
Old 23 Apr 2008, 15:50
Illidanz Illidanz is offline
Join Date: Dec 2005
Very nice one, really cool

Thanks man

*clicks Install
Reply With Quote
Old 23 Apr 2008, 16:03
sweede's Avatar
sweede sweede is offline
Join Date: Jan 2007
I've found it to be pretty usefull so far. I do regret the names that i chose though.. debuglog::log is kind of.. horrible

Next week i plan on really cracking a peice from the admin log viewer. Currently i added Line Numbering to it, and it looks pretty reasonable.
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 18:37.

Layout Options | Width: Wide Color: