2.2.4 • Published 2 years ago

lixqajslogger v2.2.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

��# JavaScriptLogger Example

1:

logger.log(message = "No Message", name = null, showTime = false, innerSpace = false, outerSpace = false, baseColor = null, borderChar = "-", borderCharLength = 10, filesPath = null)

2:

logger.logByOptions({
  message: "This is the message",
  name: "Scriptname",
  showTime: true,
  innerSpace: true,
  outerSpace: true,
  baseColor: chalk.green,
  borderChar: "-",
  borderCharLength: 20
  filesPath: "logs"
});

3:

logger.logByOptions({
  message: "This is the message"
});

Output from example 2:

####################| Scriptname |####################

Time: 22:10:00

This is the message

######################################################

the whole log will be green because of baseColor and will be also written in the logs folder in the latest.log file


Without any parameters it would look like:

Output from example 3:

------------------------
This is the message
------------------------

You can set Standards:

logger.setStandards({
  title: "Preset"
});

The title will now always be "Preset", if you dont overwrite it using the NORMAL logByOptions or log function

  • message: Message that appears in log

  • name: Title of the log

  • showTime: Show time upper the message

  • innerSpace: Makes a line space between border, message and (time)

  • outerSpace: Makes a line space to other console outputs

  • baseColor: Set color of whole log using chalk without function ()

  • borderChar: Set the character for border

  • borderCharLength: Set length for border each side. 20 -> 20chars | name | 20chars -1 will set a automatic length detection

  • filesPath: Set a path for the file logs. null for disable

2.2.1

2 years ago

2.2.0

2 years ago

2.2.3

2 years ago

2.2.2

2 years ago

2.2.4

2 years ago

2.1.10

2 years ago

1.0.18

2 years ago

1.0.17

3 years ago

1.0.16

3 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.1.4

2 years ago

2.0.4

2 years ago

2.1.6

2 years ago

2.1.5

2 years ago

2.1.8

2 years ago

2.1.7

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

2.1.9

2 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago