DongfuJiang commited on
Commit
fde38b0
1 Parent(s): 1005701
Files changed (1) hide show
  1. serve/log_utils.py +3 -0
serve/log_utils.py CHANGED
@@ -84,6 +84,9 @@ def build_logger(logger_name, logger_filename, add_remote_handler=True):
84
  api_handler = APIHandler(apiUrl=api_url, log_path=f"{LOGDIR}/{remote_logger_filename}")
85
  api_handler.setFormatter(formatter)
86
  logger.addHandler(api_handler)
 
 
 
87
 
88
  # if LOGDIR is empty, then don't try output log to local file
89
  if LOGDIR != "":
 
84
  api_handler = APIHandler(apiUrl=api_url, log_path=f"{LOGDIR}/{remote_logger_filename}")
85
  api_handler.setFormatter(formatter)
86
  logger.addHandler(api_handler)
87
+
88
+ stdout_logger.addHandler(api_handler)
89
+ stderr_logger.addHandler(api_handler)
90
 
91
  # if LOGDIR is empty, then don't try output log to local file
92
  if LOGDIR != "":