Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.169.384 Times

log4matlab 1.0

  Date Added: May 30, 2013  |  Visits: 311

log4matlab

Report Broken Link
Printer Friendly Version


Product Homepage
Download (42 downloads)



This has been a very useful tool for me for logging from multiple classes/functions. Writing log messages to command line is not scalable for large projects with many classes. I wrote this because I log4cxx is awesome and I wanted something for matlab that could be used easily log to file so I could debug.If the logger is made a singleton for a project then all classes can write their log messages to the same file.Supports Debug messages, warning messages and error messages.Logs to the time in milliseconds when the message was sentIn order to set the file with which to log toL = log4matlab('logFileName.log');--To log a debug message about a class called 'myClassName'L.mlog = {L.DEBUG,'myClassName','This is a debug message'};--To log a warning message about a function called 'SomeFunction'L.mlog = {L.WARN,'SomeFunction','This is a warning message'};--To log an error message about a script called 'ThisIsArbitrary'L.mlog = {L.ERROR,'ThisIsArbitrary','This is an error message'};--To set the logger level for class called 'myClassName' so that only warnings and errors are shown.Then to send 3 log messages of which only 2 will now be loggedL.setLoggerLevel('myClassName',L.WARN)L.mlog = {L.DEBUG,'myClassName','This is a debug message'};L.mlog = {L.WARN,'myClassName','This is a warning message'};L.mlog = {L.ERROR,'myClassName','This is an error message'};--To set the logger level for function called 'SomeFunction' so that only errors are shown.Then to send 3 log messages of which only 1 will now be loggedL.setLoggerLevel('SomeFunction',L.ERROR)L.mlog = {L.DEBUG,'SomeFunction','This is a debug message'};L.mlog = {L.WARN,'SomeFunction','This is a warning message'};L.mlog = {L.ERROR,'SomeFunction','This is an error message'};--To get the logger level for myClassName, SomeFunction and ThisIsArbitrary and see they are equal to what we expectL.getLoggerLevel('myClassName') == L.WARNL.getLoggerLevel('SomeFunction') == L.ERRORL.getLoggerLevel('ThisIsArbitrary') == L.DEBUG--Start with the 'Example.m' script that shows how to use log4matlab as a script and also how to use it in a project containing multiple classes and classes in namespaces.NOT NECESSRY BUT as an additional extra, if you wish to run the unit test cases file log4matlabTestCase.m you need the sourceforge project: mlUnit - Testing Framework for MATLAB (http://sourceforge.net/projects/mlunit/). You DO NOT NEED THIS.

Requirements: No special requirements
Platforms: Matlab
Keyword: Equal Errors Expect Logged Lwarn Myclassname Myclassname Shown Somefunction Thisisarbitrary Warnings
Users rating: 0/10

License: Shareware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


LOG4MATLAB RELATED
Games  -  phpDiplomacy 0.75
phpDiplomacy is an open source, multiplayer, web based strategy game based on the board game by Avalon Hill, in which you have to try and conquer Europe. To win you have to be strategic and diplomatic, making deals and alliances with other...
471.04 KB  
File Cataloguers  -  FoldMonkey 1.60
FoldMonkey will help you sort, organize, archive and backup your files and folders. Main features include: Monitor a folder for new or incoming files. Rename those files to match specific criteria using tags such as old file name, old file...
1.91 MB  
Backup Utilities  -  FolderClone Standard 2.0.3
FolderClone is the latest product in Salty Brine Softwares stable of synchronization tools. Designed to provide fast, flexible and easy backup, synchronization, replication, and mirroring of important files on most storage media A 'Set it and...
5.73 MB  
Utilities  -  FolderClone Standard Edition 2.0.5
FolderClone is the latest product in Salty Brine Softwares stable of synchronization tools. Designed to provide fast, flexible and easy backup, synchronization, replication, and mirroring of important files on most storage media A 'Set it and...
5.49 MB  
Utilities  -  FolderClone Professional Edition 2.0.5
FolderClone Professional provides fast, flexible and easy backup, synchronization, replication, and mirroring of important files on most storage media. FolderClone pro includes all of the capabilities of FolderClone Standard Edition along with...
5.85 MB  
Programming  -  PyChecker 0.8.17
PyChecker is a tool for finding bugs in python source code. PyChecker program finds problems that are typically caught by a compiler for less dynamic languages, like C and C++. It is similar to lint. Because of the dynamic nature of python, some...
122.88 KB  
Clipboard Utilities  -  Expect::Simple 0.04
Expect::Simple is a Perl wrapper around the Expect module which should suffice for simple applications. It hides most of the Expect machinery; the Expect object is available for tweaking if need be. Generally, one starts by creating an...
10.24 KB  
Development Tools  -  16-bits fixed-point PID implementations in C 1.0
The effect of fixed-point arithmetic in 16-bits PID controller C routineson the closed-loop precision is shown in this Simulink model.Two Simulink blocks that implement single and doubleprecision 16-bits PID C routines are generated with the LCT....
20.48 KB  
Libraries  -  Mac::Errors 1.13
Mac::Errors is a Perl module with constants for Mac error codes. SYNOPSIS use Mac::Errors qw(openErr); if( $value == openErr ) { ... } my $error = $MacErrors{ $symbol }; # -- OR -- my $error = $MacErrors{ $number }; my $symbol =...
54.27 KB  
Libraries  -  Net::SCP::Expect 0.12
Net::SCP::Expect is a wrapper for scp that allows passwords via Expect. SYNOPSIS Example 1 - uses login method, longhand scp: my $scpe = Net::SCP::Expect->new; $scpe->login(user name, password); $scpe->scp(file,host:/some/dir); Example 2 -...
153.6 KB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Development Tools  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  Sending reports and timestamped file by emailing 1.0
main executing reference usage:[1] usage_send_mail.mIllustrates email sending with multiple separate files or single timestamped tar file. Attachment failure is properly handled, with continuation of report emailing without the attachment.[2]...
768 KB  
Development Tools  -  IrisMVC 2.0 rc1
IrisMVC is an OOP PHP framework that developers can use as a strong and secure foundation to build on various web applications following the Model-View-Controller (MVC) pattern. It provides the basic functionality developers need, without...
51.2 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB