pcg_gazebo.log
pcg_gazebo.log¶
Global logging methods.
update_log_dir¶
update_log_dir(add_timestamp=True)
Input arguments
add_timestamp
(type:bool
, default:True
): Add timestamp to folder name.
change_log_root_dir¶
change_log_root_dir(root_dir, update_log_dir=False, add_timestamp=True)
Input arguments
root_dir
(type:str
): New output log directory.update_log_dir
(type:bool
, default:False
): Update current global path for log directory.add_timestamp
(type:bool
, default:True
): Add timestamp to the directory folder name.
get_log_dir¶
get_log_dir()
create_logger¶
create_logger(name, log_filename=None, output_dir=None, log_level=20)
Input arguments
name
(type:str
): Name of the instance.log_filename
(type:str
, default:None
): Name of the log filename, ifNone
usename
as filename.output_dir
(type:str
, default:data
): Output log directory. IfNone
is provided, use the current log directoryPCG_LOG_DIR
.log_level
(type:int
, default:logging.ERROR
): Log level.
Returns
Logger object.