Last active
May 25, 2024 10:19
-
-
Save dacr/f002846d717497a913410ae8f440bbb3 to your computer and use it in GitHub Desktop.
logging basic instructions just for copy and paste purposes / published by https://github.com/dacr/code-examples-manager #f4c9cbc9-bc49-475a-81c1-eb313393c6f0/c2c73928f5c27e922b220378e31b01527f6d6bab
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 : logging basic instructions just for copy and paste purposes | |
// keywords : logging, cheatsheet, slf4j, @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 : f4c9cbc9-bc49-475a-81c1-eb313393c6f0 | |
// created-on : 2021-09-26T11:11:27+02:00 | |
// managed-by : https://github.com/dacr/code-examples-manager | |
// run-with : scala-cli $file | |
// --------------------- | |
//> using scala "3.4.2" | |
//> using dep "org.slf4j:slf4j-api:2.0.7" | |
//> using dep "org.slf4j:slf4j-simple:2.0.7" | |
//// using lib "org.slf4j:slf4j-nop:2.0.7" | |
// --------------------- | |
import org.slf4j.LoggerFactory | |
val logger = LoggerFactory.getLogger("default") | |
logger.info("Hello world") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment