Home > @rushstack/heft > ScopedLogger

ScopedLogger class

Signature:

export declare class ScopedLogger implements IScopedLogger 

Implements: IScopedLogger

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ScopedLogger class.

Properties

Property Modifiers Type Description
errors   ReadonlyArray<Error>  
loggerName   string  
terminal   Terminal  
terminalProvider   ITerminalProvider  
warnings   ReadonlyArray<Error>  

Methods

Method Modifiers Description
emitError(error)   Call this function to emit an error to the heft runtime.
emitWarning(warning)   Call this function to emit an warning to the heft runtime.