Questions tagged [xcglogger]

A debug log framework for Swift.

XCGLogger is a debug log framework for . For further information, refer to the GitHub page.

28 questions
9
votes
0 answers

Carthage ld: warning: directory not found for option ' empty search path

im trying to use carthage with a brand new empty project and adding two dependency to Cartfile here how it looks like: github "RestKit/RestKit" == 0.25.0 github "DaveWoodCom/XCGLogger" next im going a : carthage update --platform ios and get the…
8
votes
1 answer

Completely disable logs from XCGLogger when in production

How do I completely disable logs from XCGLogger when in production environment? At present I am using logLevel = .None. Is this the recommended way ?
Kaunteya
  • 3,107
  • 1
  • 35
  • 66
6
votes
2 answers

How to use XCGLogger in a framework

I want to use XCGLogger inside of a Swift framework I'm writing. The app that includes this framework may or may not use XCGLogger as well. What's the best way to approach this sort of scenario? Would I use something like dependency injection to…
0x6A75616E
  • 4,696
  • 2
  • 33
  • 57
4
votes
1 answer

Is XCGLogger thread safe?

I am considering using XCGLogger to replace CocoaLumberjack and would like to know if is it permissible to log the following from any thread using a global logger created and setup on the main thread as per the README? log.info("This is not a valid…
Neil
  • 601
  • 7
  • 16
3
votes
2 answers

XCGLogger does not colorise in debug window

The Github Readme mentions possibility of colours in debug. Despite configuration of the XcodeColors plugin, what else is needed to get colorised output there?
3
votes
2 answers

XCGLogger 3.0 doesn't write logfile to filesystem (iOS 9)

I want to use XCGLogger 3.0 to do the logging in an iOS9 app written in Swift 2. In the AppDelegate, I define let log = XCGLogger.defaultInstance() and in application:didFinishLaunchingWithOptions I do the setup with: log.setup(.Debug,…
ikemuc
  • 43
  • 8
2
votes
1 answer

Does XCGLogger use os_log for fast logging?

I am comparing CleanRoomLogger https://github.com/emaloney/CleanroomLogger with XCGLogger https://github.com/DaveWoodCom/XCGLogger. There are many similarities but XCG seemed to be better because 1) it provides filters on the basis of tags 2) easy…
A_G
  • 2,260
  • 3
  • 23
  • 56
2
votes
1 answer

How do I use XCGLogger in a test target in swift 3?

I have been using XCGLogger for a while now, but after converting my app to swift 3.0, I am having issues with it in my test target. I have the following as part of my AppDelegate class file. This creates a global variable log which I can use…
nPn
  • 16,254
  • 9
  • 35
  • 58
2
votes
1 answer

How to use multiple destinations?

I saw the below instructions in the README file of XCGLogger github page. "Another common usage pattern is to have multiple loggers, perhaps one for UI issues, one for networking, and another for data issues. Each log destination can have its own…
Kevin
  • 711
  • 7
  • 19
2
votes
2 answers

XCGLogger: Ambiguous reference to member 'log'

Trying to set up XCGLogger and receiving error: Ambiguous reference to member 'log' I see this issue was already raised but I'm not clear on the solution.. Per the install guide added this global constant to…
Marcus Leon
  • 55,199
  • 118
  • 297
  • 429
2
votes
1 answer

How can I use XCGLogger in a mixed Xcode project (Objective-C and Swift)

I have a mixed Xcode project. My appDelegate is written in Objective-C and my Controller partly in Swift. Is it possible to use XCGLogger in that project? If yes, how can I initialized the XCGLogger in the appDelegate (e.g. -…
Morpheus78
  • 870
  • 1
  • 9
  • 21
1
vote
1 answer

How to output the name of the calling method using XCGLogger?

I have created a MyLogger class and it passes parameters to XCGLogger to output logs. I have specified true for the XCGLogger's showFileName and dateshowFunctionName, but it always outputs MyLogger's own file name and method name. Is there any way…
mitsu
  • 383
  • 2
  • 11
1
vote
1 answer

"XCGLogger writing log to" repeated before every logged line

Previously XCGLogger was working fine for me, but I decided to try some of the more advanced functions. Now my logging output in the console view of Xcode is filled with: XCGLogger writing log to: It's appearing before every…
Mason G. Zhwiti
  • 6,444
  • 11
  • 61
  • 97
1
vote
1 answer

XCGLogger version 4.0.0 and CocoaPods error

I am trying to use CocoaPods to acquire XCGLogger for Swift 3. I have tried specifying version 4.0.0 and 4.0.0-beta.3 in my pod file. However when I run a pod update or pod install I get the following error: Analyzing dependencies [!] Unable to…
1
vote
2 answers

How does XCGLogger interact with classes that implement both CustomStringConvertible and CustomDebugStringConvertible?

I am trying out XCGLogger and noticed that if I have a logging statement that includes an object instance from a class that implements both CustomDebugStringConvertible and CustomStringConvertible the logger doesn't call the debugDescription…
1
2