28 questions
1
vote
1
answer
234
views
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 ...
0
votes
0
answers
192
views
Store crash report into file
I had built a macOS application. When I delivered the app to the client, the app is crashing at some points. So I thought of putting the log file somewhere in the client's system so whenever the app ...
0
votes
1
answer
224
views
The app gets crashed because of xcglogger swift
I am using the XCGLogger with correct compatibility (My Swift language is 3.2 and XCGLogger version is 5.0.5)
But still the app crashes with the following crash report
8 XCGLogger 0x105994420 ...
2
votes
1
answer
591
views
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) ...
0
votes
1
answer
308
views
XCGLogger - How to set the Log Levels for All Logs
I am using XCGLogger in my project, how to set the log level for all. I want to log all the logs like (debug, info,error,severe,verbose etc.,), for this how can i set the log level.
2
votes
1
answer
548
views
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 ...
1
vote
1
answer
424
views
"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: &...
0
votes
1
answer
674
views
XGCLogger: Retrieve logs from device?
How can you configure XCGLogger to log so that you can access log files from individual devices being used for testing?
0
votes
1
answer
352
views
How can I remove the XcodeColors dependancy from XCGLogger?
With the latest updates to Xcode 8 when I try and do a Carthage update I'm getting the following:
xcodebuild[9502:2418269] [MT] PluginLoading: Required plug-in compatibility UUID 8A66E736-A720-4B3C-...
0
votes
2
answers
392
views
How to prefix all my logs with XCGLogger
I wanted to add a prefix to all my logs. I tried to subclass XCGLogger to override logln(...) or debug(...) functions.
But I am facing two difficulties while using this
Compiler always give me error ...
1
vote
1
answer
205
views
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 ...
0
votes
1
answer
171
views
How do I turn off the date and time for each log?
I don't really need the date and time for each log that prints to the xcode console. I've tried log.dateFormatter = nil but that didn't seem to do anything for me.
2
votes
1
answer
336
views
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 ...
2
votes
2
answers
1k
views
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 ...
6
votes
2
answers
2k
views
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? ...