SYSLOG Utility with File Rotation

A basic logging function with log rotation that records the message along with system the time
230 téléchargements
Mise à jour 29 août 2012

Afficher la licence

Simplified logging utility that can log debugging and script information to a text file.

=====================================================
Simple Use
=====================================================
Usage:
>> syslog('this happened now')

Writes the line:
2012_08_28_19_24_08 this happened now
to:
./syslog_2012_08_28_19.log

=====================================================
Log Rotation
=====================================================
Usage:
>> syslog('first hour')
>> pause(3600)
>> syslog('second hour')

Writes the line:
2012_08_28_19_24_08 first hour
to:
./syslog_2012_08_28_19.log
Then writes the line:
2012_08_28_20_24_08 second hour
to:
./syslog_2012_08_28_20.log

=====================================================
Split logging to content specific files
=====================================================
Usage:
>> syslog('a just doubled','a')
>> syslog('b just tripled','b')

Writes the line:
2012_08_28_20_24_08 a just doubled
to:
./a_2012_08_28_20.log
Then writes the line:
2012_08_28_20_24_08 b just tripled
to:
./b_2012_08_28_20.log

Citation pour cette source

Dan Couture (2024). SYSLOG Utility with File Rotation (https://www.mathworks.com/matlabcentral/fileexchange/37948-syslog-utility-with-file-rotation), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2007a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Workspace Variables and MAT-Files dans Help Center et MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
1.0.0.0