mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
5d7aa7cea1
Rotates the log files with a timestamp instead of copying all files and incrementing an integer. Increases the amount of info you have when looking at user's log files (ie. when looking at all the files, the file creation dates are accurate). ![image](https://github.com/open-goal/jak-project/assets/13153231/61bcdf51-f0f6-4eee-b1e5-140aede5d19e) Also simplifies the API for setting the log file, and `gk` logs are now game specific with `jak1` or `jak2`. Which should be useful going forward. Lastly, added a flag to all CLIs to disable ansi colors for people that want to do so. Though at the same time, there is finally a workaround in jenkins to fix ANSI colors in the truncated log view -- so I'm not sure why anyone would want to get rid of the color information. You can even setup text editors to display the color info making log parsing much easier. Fixes #1917 --------- Co-authored-by: ManDude <7569514+ManDude@users.noreply.github.com>
12 lines
293 B
C++
12 lines
293 B
C++
|
|
|
|
namespace term_util {
|
|
void clear();
|
|
int row_count();
|
|
int col_count();
|
|
|
|
#define define_common_cli_arguments(cli_app_name) \
|
|
bool _cli_flag_disable_ansi = false; \
|
|
cli_app_name.add_flag("--disable-ansi", _cli_flag_disable_ansi, "Disable ANSI colors");
|
|
} // namespace term_util
|