Module: Aliyun::OSS::Logging
- Included in:
- Client, HTTP, Multipart::Transaction, Protocol, ServerError, Util
- Defined in:
- lib/aliyun/oss/logging.rb
Overview
Logging support
Constant Summary collapse
- DEFAULT_LOG_FILE =
"./oss_sdk.log"
- MAX_NUM_LOG =
100
- ROTATE_SIZE =
10 * 1024 * 1024
Class Method Summary collapse
-
.set_log_file(file) ⇒ Object
设置日志输出的文件.
-
.set_log_level(level) ⇒ Object
level = Logger::DEBUG | Logger::INFO | Logger::ERROR | Logger::FATAL.
Instance Method Summary collapse
-
#logger ⇒ Object
获取logger.
Class Method Details
.set_log_file(file) ⇒ Object
设置日志输出的文件
24 25 26 |
# File 'lib/aliyun/oss/logging.rb', line 24 def self.set_log_file(file) @log_file = file end |