Skip to content

platacard/cronista

Repository files navigation

Cronista

All Contributors

Cronista is a simple lib written in Swift capable of showing both log messages with Xcode new renderer and arbitrary console. A small part of the larger iOS deploy infrastructure at Plata.

Installation

dependencies: [
    .package(url: "https://github.com/plataformatec/cronista.git", from: "1.0.2")
]

Usage

let logger = Cronista(
    module: "some_module", 
    category: "some_category", 
    isFileLoggingEnabled: true, // default is false
    isSecretFilterEnabled: true // default is true
)

logger.info("message")
logger.fault("fault")
logger.error("some error message")
...

File logging is disabled by default. If enabled, find your logs in ~/.plata-logger/YYYY-MM-DD. Useful for CI environments. Secret filtering is enabled by default and made possible by https://github.com/mazen160/secrets-patterns-db

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Andrei
Andrei

💻
Maksim Troshin
Maksim Troshin

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

About

Simple logger in Swift for Apple applications

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages