1.2.71 • Published 6 months ago

rbxts-transformer-inline v1.2.71

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

 

Main Feature 🔥

automatically adds $file symbol to your logging methods.

log.Info("Hello world")
log.Info("src/sever/example.ts Hello world")
works with templates, variables and strings

Symbols

$line

get the line you are on.

const firstLine = $line

print(firstLine, $line)
local firstLine = 1

print(1, 3)

$column

get the column you are on.

you get the column from the start of the symbol
const column = $column

print(column, $column)
local column = 16

print(16, 15)

$file

get the file you are on.

const thisFile = $file

print(thisFile)
local thisFile = "src/sever/example.ts"

print(thisFile)

configuration

FileSymbolFormat string

lets you add some things to the transform result.

%l

add the line info: "%main:%l" -> src/server/example.ts:1

%c

add the column info: "%main:%c" -> src/server/example.ts:1

from the start of the $file symbol

%main

add the file info (you should always include this): %main -> src/server/example.ts

CustomLogger object

Enabled boolean

enables or disables this feature.

default: true

PackageName string

the name of the package for your logging class.

default: @rbxts/log

LogMethods [string[]]

the methods used to log messages within your logging class.

default: ["Verbose", "Debug", "Info", "Warn", "Error", "Fatal"]

1.2.71

6 months ago

1.2.7

6 months ago

1.2.6

6 months ago

1.2.5

6 months ago

1.2.4

6 months ago

1.2.3

6 months ago

1.2.2

6 months ago

1.2.1

6 months ago

1.2.0

6 months ago

1.1.2

6 months ago

1.1.1

6 months ago

1.1.0

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago