Skip to content

Commit

Permalink
Change the demo apps to default to non-coloured logs, since plug-in’s…
Browse files Browse the repository at this point in the history
… are disabled by default in Xcode 8
  • Loading branch information
DaveWoodCom committed Sep 14, 2016
1 parent 5510795 commit 19b6b14
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
4 changes: 4 additions & 0 deletions XCGLogger/DemoApps/OSX/OSXDemo/OSXDemo/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ let log: XCGLogger = {
// Setup XCGLogger (Advanced/Recommended Usage)
// Create a logger object with no destinations
let log = XCGLogger(identifier: "advancedLogger", includeDefaultDestinations: false)
log.xcodeColorsEnabled = false // Set to true or set the XcodeColors environment variable in your scheme to YES, to enable coloured logs.
// Note: You need the XcodeColors Plug-in https://github.com/robbiehanson/XcodeColors installed in Xcode
// to see colours in the Xcode console. Plug-ins have been disabled in Xcode 8, so offically you can not see
// coloured logs in Xcode 8.
log.xcodeColors = [
.Verbose: .lightGrey,
.Debug: .darkGrey,
Expand Down
5 changes: 4 additions & 1 deletion XCGLogger/DemoApps/iOS/iOSDemo/iOSDemo/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
let log: XCGLogger = {
// Setup XCGLogger
let log = XCGLogger.defaultInstance()
log.xcodeColorsEnabled = true // Or set the XcodeColors environment variable in your scheme to YES
log.xcodeColorsEnabled = false // Set to true or set the XcodeColors environment variable in your scheme to YES, to enable coloured logs.
// Note: You need the XcodeColors Plug-in https://github.com/robbiehanson/XcodeColors installed in Xcode
// to see colours in the Xcode console. Plug-ins have been disabled in Xcode 8, so offically you can not see
// coloured logs in Xcode 8.
log.xcodeColors = [
.Verbose: .lightGrey,
.Debug: .darkGrey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ import XCGLogger
let log: XCGLogger = {
// Setup XCGLogger
let log = XCGLogger.defaultInstance()
log.xcodeColorsEnabled = true // Or set the XcodeColors environment variable in your scheme to YES
log.xcodeColorsEnabled = false // Set to true or set the XcodeColors environment variable in your scheme to YES, to enable coloured logs.
// Note: You need the XcodeColors Plug-in https://github.com/robbiehanson/XcodeColors installed in Xcode
// to see colours in the Xcode console. Plug-ins have been disabled in Xcode 8, so offically you can not see
// coloured logs in Xcode 8.
log.xcodeColors = [
.Verbose: .lightGrey,
.Debug: .darkGrey,
Expand Down
5 changes: 4 additions & 1 deletion XCGLogger/DemoApps/tvOS/tvOSDemo/tvOSDemo/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ import XCGLogger
let log: XCGLogger = {
// Setup XCGLogger
let log = XCGLogger.defaultInstance()
log.xcodeColorsEnabled = true // Or set the XcodeColors environment variable in your scheme to YES
log.xcodeColorsEnabled = false // Set to true or set the XcodeColors environment variable in your scheme to YES, to enable coloured logs.
// Note: You need the XcodeColors Plug-in https://github.com/robbiehanson/XcodeColors installed in Xcode
// to see colours in the Xcode console. Plug-ins have been disabled in Xcode 8, so offically you can not see
// coloured logs in Xcode 8.
log.xcodeColors = [
.Verbose: .lightGrey,
.Debug: .darkGrey,
Expand Down

0 comments on commit 19b6b14

Please sign in to comment.