reshape controller startup

This commit is contained in:
Rongsong Shen 2025-11-06 17:17:26 +08:00
parent 9f91f3df80
commit a665ccd4fe
5 changed files with 32 additions and 33 deletions

View file

@ -292,18 +292,14 @@ static int my_tlog_format(char* buff,
/* return total length */
return total_len;
}
int mylog_init(char* logdir,
char* id,
int mylog_init(char* logfile,
char* loglvl,
int max_log_size,
int max_log_count)
{
char logfile[XCE_MAXPATH_LEN];
int flag = 0;
int rc = 0;
snprintf(logfile, sizeof(logfile),
"%s/%s.log", logdir, id);
if (isatty(STDERR_FILENO)) {
flag = TLOG_SCREEN_COLOR;
}