November 2018
Intermediate to advanced
404 pages
10h 16m
English
Similarly, Kitura provides a unified interface for different kinds of logger implementations. Kitura uses the LoggerAPI as the Logging API throughout its implementation. In a typical Kitura project, HeliumLogger is often used. HeliumLogger is a lightweight implementation of LoggerAPI and it is available as an open source project.
If you use kitura init to create a boilerplate for your project, you do not need to import LoggerAPI and HeliumLogger specifically, as the packages have already been included as dependencies in your Kitura project.
You'll find the import LoggerAPI and import HeliumLogger statements at the beginning of main.swift:
...// main.swiftimport LoggerAPIimport HeliumLoggerdo { HeliumLogger.use(LoggerMessageType.info) ...Read now
Unlock full access