Adaptive Logging Utility

버전 1.1 (143 KB) 작성자: Laurent Royer
Logging and environment utilities for MATLAB coding
다운로드 수: 9
업데이트 날짜: 2020/11/23

NEEDS:
1. I want to be able to choose the amount of information displayed in the MATLAB Command Window during the execution of a MATLAB software.
2. This logging level should automatically adjust depending on whether the code is being developed or used in production.
3. I want to easily debug any error in my code.
4. I want to automatically disable some time-consuming defensive programming commands in production mode, once they've been validated in a test phase.
5. I want to allow the end user to switch to a defensive mode where more errors are detected during the execution.

SOLUTION:
- A log level is defined that follows the Log4j log levels: OFF/FATAL/ERROR/WARN/INFO/DEBUG/TRACE
Reference: https://en.wikipedia.org/wiki/Log4j
- A environment mode is defined that follows the Development, Testing, Acceptance and Production (DTAP) standard with the 4 following environment modes: DEV/TEST/UAT/PROD
Reference: https://en.wikipedia.org/wiki/Development,_testing,_acceptance_and_production
- The log level is automatically adjusted according to the environment mode.
Examples:
If the log level is WARN, then all FATAL, ERROR and WARN messages are enabled.
In UAT mode, the minimal log level is WARN. So the log level cannot be set to OFF, FATAL or ERROR.
In PROD mode, only WARN and INFO message can be displayed.
- In DEV mode, any error pauses the execution and switches MATLAB to debug mode.
- The FATAL message includes a logical expression whose execution is skipped in PROD mode.

EXAMPLE:
>> devel.example

인용 양식

Laurent Royer (2024). Adaptive Logging Utility (https://github.com/mathworks/Adaptive-Logging-Utility/releases/tag/v1.1), GitHub. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2019b
R2019b 이상 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

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

1.0.0.0

See release notes for this release on GitHub: https://github.com/mathworks/Adaptive-Logging-Utility/releases/tag/v1.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.