Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active May 7, 2023 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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/8ccb56a2ded766609ad244468b0532316aa88635
// 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.2.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