![]() ![]() optionally add context to a log message console. error( "ouch, an error did occur! ") // prio 5, ERROR in red // log anything! log. warning( "oh no, that won’t be good ") // prio 4, WARNING in yellow log. info( "a nice information ") // prio 3, INFO in blue log. debug( "something to debug ") // prio 2, DEBUG in green log. verbose( "not so important ") // prio 1, VERBOSE in silver log. format = "$DHH:mm:ss$d $L $M " // or use this for JSON output: console.format = "$J" // add the destinations to SwiftyBeaver log. at least one is needed! let console = ConsoleDestination() // log to Xcode Console let file = FileDestination() // log to default swiftybeaver.log file let cloud = SBPlatformDestination( appID: "foo ", appSecret: "bar ", encryptionKey: "123 ") // to cloud // use custom format and set console output to short time, log level & message console. You can use Carthage to install SwiftyBeaver by adding that to your Cartfile: For Swift 4 & 5 install the latest SwiftyBeaver version.For example our Google Cloud Destination is just another customized logging format which adds the powerful functionality of automatic server-side Swift logging when hosted on Google Cloud Platform. ![]() You can fully customize your log format, turn it into JSON, or create your own destinations. Install via Docker or manual, fully-featured free trial included! Learn more about legally compliant, end-to-end encrypted logging your own cloud with SwiftyBeaver Enterprise. On Release: Enterprise-ready Logging to Your Private and Public Cloud Learn more about logging to the SwiftyBeaver Platform during release!Ĭonveniently access your logs during development & release with our free Mac App. ![]() On Release: Encrypted Logging to SwiftyBeaver Platform ![]() Learn more about logging to file which is great for Terminal.app fans or to store logs on disk. You can even customize the log level word (ATTENTION instead of ERROR maybe?), the general amount of displayed data and if you want to use the □s or replace them with something else □ĭuring Development: Colored Logging to File No need to hack Xcode 8 anymore to get color. Learn more about colored logging to Xcode 8 Console with Swift 3, 4 & 5. Log during release to the conveniently built-in SwiftyBeaver Platform, the dedicated Mac App & Elasticsearch!ĭocs | Website | Twitter | Privacy | Licenseĭuring Development: Colored Logging to Xcode Console Great for development & release with support for Console, File & cloud platforms. Colorful, flexible, lightweight logging for Swift 3, Swift 4 & Swift 5. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |