Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

No report of message #14

Closed
YanSte opened this issue Apr 18, 2018 · 6 comments
Closed

No report of message #14

YanSte opened this issue Apr 18, 2018 · 6 comments

Comments

@YanSte
Copy link

YanSte commented Apr 18, 2018

capture d ecran 2018-04-17 a 22 02 03

capture d ecran 2018-04-17 a 22 02 19

I don't have my report of my error.

This is my code

        #if DEBUG
            let description = "\n[\(reportType.logo())]\n馃憠\(error)\n馃憟"
            let color: UIColor
            switch reportType {
            case .error:    color = UIColor.red
            case .warning:  color = UIColor.orange
            case .info:     color = UIColor.yellow
            }
            swiftLog(file, function, inLine, description, color)
        #endif

do you need some more information ?

@CocoaDebug
Copy link
Owner

CocoaDebug commented Apr 18, 2018

That is strange. My example project just works fine.

@CocoaDebug
Copy link
Owner

I will try your code in my demo later.

@CocoaDebug
Copy link
Owner

CocoaDebug commented Apr 18, 2018

I know why now, I will fix it soon~ (see here)

example

@CocoaDebug CocoaDebug added the bug Something isn't working label Apr 18, 2018
@lailavinson
Copy link

lailavinson commented Apr 18, 2018

I have this same problem on iOS 10.3.3, using iPhone 5. The same code works in iOS 11.3, using iPhone 7. This issue happens regardless of how I set the UIColor (or if I omit the color argument).

The dates are showing up correctly in realtime, but there is no other information.

EDIT: I think this is a weird UI issue. I really wanted to use this for something so I was able to get the logs (sort of) working on the iPhone 5/iOS 10 by updating the "format" function in LoggerFormat and omitting the "fileInfo" string (see attached - before removing fileInfoString it looked like OP's screenshot). It seems like the cell is just running out of space.

img_0423

(PS - sorry if this is not the same issue as OP but it seems the same!)

@CocoaDebug
Copy link
Owner

CocoaDebug commented Apr 19, 2018

hi, I release new version of CocoaDebug, please update via cocoapods or Carthage.
Readme changed a little.

@lailavinson
Copy link

lailavinson commented Apr 19, 2018

It works! Thanks for the quick fix :)

@CocoaDebug CocoaDebug removed the bug Something isn't working label Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants