Last active
May 25, 2024 10:18
-
-
Save dacr/8769a1e981f7b25aa12c34e46f723a0f to your computer and use it in GitHub Desktop.
ZIO learning - using zio logging / published by https://github.com/dacr/code-examples-manager #55b5a3ca-e04a-4383-a171-a6b259add699/338805b2ba645bbd24dbfe811c9c881e79c3d88b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// summary : ZIO learning - using zio logging | |
// keywords : scala, zio, learning, logging, pure-functional, @testable | |
// publish : gist | |
// authors : David Crosson | |
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2) | |
// id : 55b5a3ca-e04a-4383-a171-a6b259add699 | |
// created-on : 2022-06-30T22:28:12+02:00 | |
// managed-by : https://github.com/dacr/code-examples-manager | |
// run-with : scala-cli $file | |
// --------------------- | |
//> using scala "3.4.2" | |
//> using dep "dev.zio::zio:2.0.13" | |
//> using dep "dev.zio::zio-logging:2.1.12" | |
// --------------------- | |
import zio.* | |
import zio.logging.* | |
object Encapsulated extends ZIOAppDefault { | |
def run = ZIO.logInfo("Hello world") | |
} | |
Encapsulated.main(Array.empty) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment