log

Contains logging functions built from global config options.

Logged entries are printed to the console and to lando.log and error.log in $HOME/.lando/logs. The verbosity of these logs is determined by the lando global config.

Since: 3.0.0
Example

// Log an error message
lando.log.error('This is an err with details %j', err);

// Log a silly message
lando.log.silly('This is probably too much logging!');

// Log an info message
lando.log.info('Loaded up the %s app', appName);

log.error

Logs an error message.

Kind: static method of log
Since: 3.0.0

Param Type Description
msg String A string that will be passed into nodes core utils.format()
[...values] Any Values to be passed utils.format()

Example

// Log an error message
lando.log.error('This is an err with details %j', err);

log.warn

Logs a warning message.

Kind: static method of log
Since: 3.0.0

Param Type Description
msg String A string that will be passed into nodes core utils.format()
[...values] Any Values to be passed utils.format()

Example

// Log a warning message
lando.log.warning('Something is up with app %s in directory %s', appName, dir);

log.info

Logs an info message.

Kind: static method of log
Since: 3.0.0

Param Type Description
msg String A string that will be passed into nodes core utils.format()
[...values] Any Values to be passed utils.format()

Example

// Log an info message
lando.log.info('It is happening!');

log.verbose

Logs a verbose message.

Kind: static method of log
Since: 3.0.0

Param Type Description
msg String A string that will be passed into nodes core utils.format()
[...values] Any Values to be passed utils.format()

Example

// Log a verbose message
lando.log.verbose('Config file %j loaded from %d', config, directory);

log.debug

Logs a debug message.

Kind: static method of log
Since: 3.0.0

Param Type Description
msg String A string that will be passed into nodes core utils.format()
[...values] Any Values to be passed utils.format()

Example

// Log a debug message
lando.log.debug('All details about docker inspect %j', massiveObject);

log.silly

Logs a silly message.

Kind: static method of log
Since: 3.0.0

Param Type Description
msg String A string that will be passed into nodes core utils.format()
[...values] Any Values to be passed utils.format()

Example

// Log a silly message
lando.log.silly('All details about all the things', unreasonablySizedObject);

// Log a silly message
lando.log.silly('If you are seeing this you have delved too greedily and too deep and likely have awoken something.');

results matching ""

    No results matching ""