Skip to content

Instantly share code, notes, and snippets.

@gabrielfeo
Last active August 29, 2025 19:55
Show Gist options
  • Save gabrielfeo/6ed77c845c80a484d4d7913e2ff49831 to your computer and use it in GitHub Desktop.
Save gabrielfeo/6ed77c845c80a484d4d7913e2ff49831 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-08-29T19:43:20.414784Z",
"start_time": "2025-08-29T19:43:20.405396Z"
}
},
"cell_type": "code",
"source": [
"%trackClasspath on\n",
"%logLevel debug"
],
"outputs": [],
"execution_count": 1
},
{
"cell_type": "code",
"metadata": {
"collapsed": true,
"ExecuteTime": {
"end_time": "2025-08-29T19:43:21.801874Z",
"start_time": "2025-08-29T19:43:21.614805Z"
}
},
"source": "@file:DependsOn(\"org.slf4j:slf4j-api:2.0.17\")",
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1 new paths were added to classpath:\n",
"/Users/gfeo/.m2/repository/org/slf4j/slf4j-api/2.0.17/slf4j-api-2.0.17.jar\n",
"Current classpath size: 10\n",
"\n"
]
}
],
"execution_count": 2
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-08-29T19:43:49.841350Z",
"start_time": "2025-08-29T19:43:49.774651Z"
}
},
"cell_type": "code",
"source": [
"import org.slf4j.LoggerFactory\n",
"\n",
"LoggerFactory.getLogger(\"foo\").info(\"This is an info log message\")"
],
"outputs": [],
"execution_count": 3
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-08-29T19:44:48.020690Z",
"start_time": "2025-08-29T19:44:47.953738Z"
}
},
"cell_type": "code",
"source": "@file:DependsOn(\"org.slf4j:slf4j-simple:2.0.17\")",
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1 new paths were added to classpath:\n",
"/Users/gfeo/.m2/repository/org/slf4j/slf4j-simple/2.0.17/slf4j-simple-2.0.17.jar\n",
"1 resolved paths were already in classpath:\n",
"/Users/gfeo/.m2/repository/org/slf4j/slf4j-api/2.0.17/slf4j-api-2.0.17.jar\n",
"Current classpath size: 11\n",
"\n"
]
}
],
"execution_count": 5
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-08-29T19:45:00.074636Z",
"start_time": "2025-08-29T19:45:00.033983Z"
}
},
"cell_type": "code",
"source": "LoggerFactory.getLogger(\"bar\").info(\"This is an info log message\")",
"outputs": [],
"execution_count": 6
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-08-29T19:45:13.496220Z",
"start_time": "2025-08-29T19:45:13.494591Z"
}
},
"cell_type": "code",
"source": "%logLevel debug",
"outputs": [],
"execution_count": 7
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-08-29T19:45:25.123195Z",
"start_time": "2025-08-29T19:45:25.085409Z"
}
},
"cell_type": "code",
"source": "LoggerFactory.getLogger(\"baz\").info(\"This is an info log message\")",
"outputs": [],
"execution_count": 8
}
],
"metadata": {
"kernelspec": {
"display_name": "Kotlin",
"language": "kotlin",
"name": "kotlin"
},
"language_info": {
"name": "kotlin",
"version": "1.9.23",
"mimetype": "text/x-kotlin",
"file_extension": ".kt",
"pygments_lexer": "kotlin",
"codemirror_mode": "text/x-kotlin",
"nbconvert_exporter": ""
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment