Log
This is a set of Java codes that create a log file. It allows users to easily write log information with elapsed time and CPU clock time in the log file and it can be smoothly incorporated into users’ own codes. Each log information is numbered and ordered.
By default, the log file will be automatically created when the class DiaryXL is instantiated with a unique file name (launching time is part of the log file name).
Two examples are provided to show how to use the developed classes for logging purpose; (if counting the simple example in the main function of DiaryXL.java, then three examples). Results for those three examples are also provided for users’ convenience.
- A Python version of this logging function is available at: https://rpglab.github.io/resources/Logging-Python/
Contact:
Dr. Xingpeng Li
University of Houston
Email: xli83@central.uh.edu
Website: https://rpglab.github.io/
License:
This work is licensed under the terms of the Creative Commons Attribution 4.0 (CC BY 4.0) license.
Disclaimer:
The author doesn’t make any warranty for the accuracy, completeness, or usefulness of any information disclosed; and the author assumes no liability or responsibility for any errors or omissions for the information (data/code/results etc) disclosed.