2016-06-29 8 views

答えて

1

このレポのAdvanced Usageセクションには、というパラメータを指定します。これはfalseに設定できます。

// Create a logger object with no destinations 
let log = XCGLogger(identifier: "advancedLogger", includeDefaultDestinations: false) 

// Create a destination for the system console log (via NSLog) 
let systemLogDestination = XCGNSLogDestination(owner: log, identifier: "advancedLogger.systemLogDestination") 

// Optionally set some configuration options 
systemLogDestination.outputLogLevel = .Debug 
systemLogDestination.showLogIdentifier = false 
systemLogDestination.showFunctionName = true 
systemLogDestination.showThreadName = true 
systemLogDestination.showLogLevel = true 
systemLogDestination.showFileName = true 
systemLogDestination.showLineNumber = true 
systemLogDestination.showDate = false 

// Add the destination to the logger 
log.addLogDestination(systemLogDestination) 
関連する問題