plugins.LoggerPlugin
Logger plugin that handles all logging coming from the Webpack ecosystem, including compilation progress as well as debug logs from other plugins and resolvers.
• new LoggerPlugin(config)
Constructs new LoggerPlugin.
| Name | Type | Description | 
|---|---|---|
| config | LoggerPluginConfig | Plugin configuration options. | 
packages/repack/src/webpack/plugins/LoggerPlugin.ts:51
• Readonly reporter: Reporter
Reporter instance used to actually writing logs to terminal/file.
packages/repack/src/webpack/plugins/LoggerPlugin.ts:44
▸ apply(compiler): void
Apply the plugin.
| Name | Type | Description | 
|---|---|---|
| compiler | Compiler | Webpack compiler instance. | 
void
packages/repack/src/webpack/plugins/LoggerPlugin.ts:126
▸ createEntry(issuer, type, args, timestamp?): undefined | LogEntry
Create log entry from Webpack log message from WebpackLogger.
| Name | Type | Description | 
|---|---|---|
| issuer | string | Issuer of the message. | 
| type | string | Type of the message. | 
| args | any[] | The body of the message. | 
| timestamp? | number | Timestamp when the message was recorder. | 
undefined | LogEntry
Log entry object or undefined when if message is invalid.
packages/repack/src/webpack/plugins/LoggerPlugin.ts:80
▸ processEntry(entry): void
Process log entry and pass it to reporter instance.
| Name | Type | Description | 
|---|---|---|
| entry | LogEntry | Log entry to process | 
void