UNPKG
sway-tools
Version:
latest (1.3.1)
1.3.1
1.3.0
1.2.0
1.1.1
1.1.0
1.0.1
1.0.0
Some tools and a library for controlling sway
sway-tools
/
src
/
logger.ts
16 lines
(13 loc)
•
258 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import pino
from
'pino'
;
const
mainLogger
=
pino
({
level
:
'debug'
,
transport
: {
target
:
'pino-pretty'
,
options
: {
colorize
:
true
, }, }, }); export
function
createLogger
(
name:
string
)
{
return
mainLogger.
child
({
module
: name }); }