Comments (3)
xcode12.4 xcglogger 7.0.1
from xcglogger.
Remove:
let ansiColorLogFormatter = XcodeColorsLogFormatter()
ansiColorLogFormatter.colorize(level: .debug, with: .black)
ansiColorLogFormatter.colorize(level: .info, with: .blue)
ansiColorLogFormatter.colorize(level: .notice, with: .green)
ansiColorLogFormatter.colorize(level: .warning, with: .red)
ansiColorLogFormatter.colorize(level: .error, with: .red)
ansiColorLogFormatter.colorize(level: .severe, with: .white, on: .red)
ansiColorLogFormatter.colorize(level: .alert, with: .white, on: .red)
ansiColorLogFormatter.colorize(level: .emergency, with: .white, on: .red)
log.formatters = [ansiColorLogFormatter]
from your set up. Xcode no longer supporters colours in the console area. The XcodeColorsLogFormatter
is only useful now if you're logging to an external source compatible with ANSI codes.
from xcglogger.
Instead of below it also not work
let ansiColorLogFormatter = ANSIColorLogFormatter()
ansiColorLogFormatter.colorize(level: .debug, with: .black)
ansiColorLogFormatter.colorize(level: .info, with: .blue)
ansiColorLogFormatter.colorize(level: .notice, with: .green)
ansiColorLogFormatter.colorize(level: .warning, with: .red)
ansiColorLogFormatter.colorize(level: .error, with: .red)
ansiColorLogFormatter.colorize(level: .severe, with: .white, on: .red)
ansiColorLogFormatter.colorize(level: .alert, with: .white, on: .red)
ansiColorLogFormatter.colorize(level: .emergency, with: .white, on: .red)
log.formatters = [ansiColorLogFormatter]
from xcglogger.
Related Issues (20)
- log level implementation incomplete? HOT 2
- How to display the test results with XCGLogger and XCUITest
- Hi, when I use logger to output logs to the console, the logs are not displayed completely, but the output to the file is normal. Where can I set it?
- Cannot convert value of type '(UnsafeMutableRawBufferPointer) -> Int' to expected argument type '(UnsafeMutablePointer<_>) -> _'
- Module Stability (Swift 5.1) HOT 3
- #file becomes #filePath in Swift 5.3, #file will now just be the fileName HOT 3
- framework not found Log HOT 1
- Rolled logs, old files deleted on process (app) restart HOT 3
- The end of the file log has "[m" HOT 2
- Type of Logger
- Crash on Linux
- Has it been updated for more than a year? HOT 1
- file size
- Version 4.0 does not work with Xcode 13 anymore HOT 1
- How Can I color with font HOT 1
- Supporting Windows platforms?
- Is the file size limited HOT 2
- Duplicate logs getting generated HOT 1
- Cannot compile framework with XCGLogger dependencies
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xcglogger.