mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2026-02-04 06:42:05 +00:00
Update 2025-10-31
update 2025-10-08 chore: update readme Update 2025-10-09 Update 2025-10-15 Update 2025-10-22 Update 2025-10-31
This commit is contained in:
91
snippets/python.lua
Normal file
91
snippets/python.lua
Normal file
@@ -0,0 +1,91 @@
|
||||
---@diagnostic disable: undefined-global
|
||||
|
||||
return {
|
||||
s(
|
||||
"logger",
|
||||
fmt(
|
||||
[[
|
||||
import logging
|
||||
logger = logging.getLogger(__name__)
|
||||
]],
|
||||
{}
|
||||
)
|
||||
),
|
||||
s(
|
||||
"dbg",
|
||||
fmt(
|
||||
[[
|
||||
logger.debug({})
|
||||
]],
|
||||
{
|
||||
i(0),
|
||||
}
|
||||
)
|
||||
),
|
||||
s(
|
||||
"info",
|
||||
fmt(
|
||||
[[
|
||||
logger.info({})
|
||||
]],
|
||||
{
|
||||
i(0),
|
||||
}
|
||||
)
|
||||
),
|
||||
s(
|
||||
"warn",
|
||||
fmt(
|
||||
[[
|
||||
logger.warning({})
|
||||
]],
|
||||
{
|
||||
i(0),
|
||||
}
|
||||
)
|
||||
),
|
||||
s(
|
||||
"err",
|
||||
fmt(
|
||||
[[
|
||||
logger.error({})
|
||||
]],
|
||||
{
|
||||
i(0),
|
||||
}
|
||||
)
|
||||
),
|
||||
s(
|
||||
"exc",
|
||||
fmt(
|
||||
[[
|
||||
logger.exception({})
|
||||
]],
|
||||
{
|
||||
i(0),
|
||||
}
|
||||
)
|
||||
),
|
||||
s(
|
||||
"crit",
|
||||
fmt(
|
||||
[[
|
||||
logger.critical({})
|
||||
]],
|
||||
{
|
||||
i(0),
|
||||
}
|
||||
)
|
||||
),
|
||||
s(
|
||||
"fatal",
|
||||
fmt(
|
||||
[[
|
||||
logger.fatal({})
|
||||
]],
|
||||
{
|
||||
i(0),
|
||||
}
|
||||
)
|
||||
),
|
||||
}, {}
|
||||
Reference in New Issue
Block a user