Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active May 25, 2024 10:19
Show Gist options
  • Save dacr/f002846d717497a913410ae8f440bbb3 to your computer and use it in GitHub Desktop.
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
// 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