This patch fills the log file name with the role name. For example, the replica
server log file name is in the form of replica.log.<yyyyMMdd_hhmmss_SSS>,
while the meta server log file name is in the form of meta.log.<yyyyMMdd_hhmmss_SSS>.
If the role name is empty (typically in unit tests), it will fall back to use
a new configudation base_name in tools.simple_logger section, it's default
as pegasus. Then, the log file is in the form of pegasus.log.<yyyyMMdd_hhmmss_SSS>.
This patch fills the log file name with the role name. For example, the replica server log file name is in the form of
replica.log.<yyyyMMdd_hhmmss_SSS>
, while the meta server log file name is in the form ofmeta.log.<yyyyMMdd_hhmmss_SSS>
.If the role name is empty (typically in unit tests), it will fall back to use a new configudation
base_name
intools.simple_logger
section, it's default aspegasus
. Then, the log file is in the form ofpegasus.log.<yyyyMMdd_hhmmss_SSS>
.