Skip to content

Commit

Permalink
[1.0.3] Default terminal setting due to Xcode flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Shial committed Oct 19, 2017
1 parent e785333 commit f289e9e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,13 @@ can you can use `LogProvider` build in method send. To send your log via SLLog.
Default console log:
```swift
isDebug: Bool = true,
isTerminal: Bool = false,
isTerminal: Bool = {
#if Xcode
return false
#else
return true
#endif
}(),
minProductionLogType: UInt = 3
logFormat: String = ":d :t :f::l :m",
dateFormat: String? = nil,
Expand Down
8 changes: 7 additions & 1 deletion Sources/SLLog/SLLogConsole.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ public struct LogColor {

public class SLLogConsole: LogHandler {
public init(isDebug: Bool = true,
isTerminal: Bool = false,
isTerminal: Bool = {
#if Xcode
return false
#else
return true
#endif
}(),
minProductionLogType: UInt = 3,
logFormat: String = ":d :t :f::l :m",
dateFormat: String? = nil,
Expand Down

0 comments on commit f289e9e

Please sign in to comment.