Baidu AI Cloud
中国站

百度智能云

Object Storage

sdk Log

SDK Log

BOS Ruby SDK supports four levels of logs (the default is 'Logger::INFO' level), and supports to set the directory of output log files. Please refer to 'Log' module for more details. Sample code:

# Default log path: DEFAULT_LOG_FILE = "./baidubce-sdk.log" 
Log.set_log_file(file_path) 

# Set 4 log level. Logger::DEBUG | Logger::INFO | Logger::ERROR | Logger::FATAL 
Log.set_log_level(Logger::DEBUG) 
Previous
File Management
Next
GO-SDK