SYSLOG Utility with File Rotation

버전 1.0.0.0 (1.74 KB) 작성자: Dan Couture
A basic logging function with log rotation that records the message along with system the time
다운로드 수: 230
업데이트 날짜: 2012/8/29

라이선스 보기

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

인용 양식

Dan Couture (2024). SYSLOG Utility with File Rotation (https://www.mathworks.com/matlabcentral/fileexchange/37948-syslog-utility-with-file-rotation), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0