Home Manual Reference Source Test
import {LogFormat} from 'atscm-cli/src/lib/util/Logger.js'
public class | source

LogFormat

Formats strings to be used in the Logger.

Test:

Static Method Summary

Static Public Methods
public static

command(command: string): string

Formats a string to represent a command.

public static

number(number: string): string

Formats a string to represent a number.

public static

path(path: string): string

Formats a string to represent a path.

public static

value(value: string): string

Formats a string to represent a value.

Static Public Methods

public static command(command: string): string source

Formats a string to represent a command.

Params:

NameTypeAttributeDescription
command string

The command to format.

Return:

string

The formatted string.

Test:

public static number(number: string): string source

Formats a string to represent a number. Use this format for times, counts, etc.

Params:

NameTypeAttributeDescription
number string

The value to format.

Return:

string

The formatted string.

Test:

public static path(path: string): string source

Formats a string to represent a path.

Params:

NameTypeAttributeDescription
path string

The path to format.

Return:

string

The formatted string.

Test:

public static value(value: string): string source

Formats a string to represent a value. Use this format for files, module names, etc.

Params:

NameTypeAttributeDescription
value string

The value to format.

Return:

string

The formatted string.

Test: