amplify-cli-logger
Advanced tools
Comparing version 1.2.4-cdkv2.0 to 1.2.4-cdkv2.1
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.2.4-cdkv2.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-logger@1.2.4-cdkv2.0...amplify-cli-logger@1.2.4-cdkv2.1) (2023-02-15) | ||
**Note:** Version bump only for package amplify-cli-logger | ||
## [1.2.4-cdkv2.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-logger@1.2.3...amplify-cli-logger@1.2.4-cdkv2.0) (2023-02-07) | ||
@@ -8,0 +16,0 @@ |
import winston, { Logger } from 'winston'; | ||
import { IAmplifyLogger } from './IAmplifyLogger'; | ||
import { LocalProjectData, LogPayload, LogErrorPayload } from './Types'; | ||
import { LogPayload, LogErrorPayload } from './Types'; | ||
export declare class AmplifyLogger implements IAmplifyLogger { | ||
logger: Logger; | ||
loggerFormat: winston.Logform.Format; | ||
localProjectData: LocalProjectData; | ||
disabledAmplifyLogging: boolean; | ||
@@ -9,0 +8,0 @@ constructor(); |
@@ -1,2 +0,1 @@ | ||
export type LocalProjectData = {}; | ||
export type LogPayload = { | ||
@@ -3,0 +2,0 @@ message: string; |
{ | ||
"name": "amplify-cli-logger", | ||
"version": "1.2.4-cdkv2.0", | ||
"version": "1.2.4-cdkv2.1", | ||
"description": "Amplify CLI Logger", | ||
@@ -51,3 +51,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "4eb9264b658210513795372431f195ff42a74644" | ||
"gitHead": "46a85163e642f443d5cfd910d6e83fe3b82f645f" | ||
} |
@@ -7,3 +7,3 @@ import winston, { Logger, format } from 'winston'; | ||
import { getLogFilePath, getLocalLogFilePath, getLogAuditFilePath, getLocalAuditLogFile } from './getLogFilePath'; | ||
import { LocalProjectData, LogPayload, LogErrorPayload } from './Types'; | ||
import { LogPayload, LogErrorPayload } from './Types'; | ||
const { combine, timestamp, splat, printf } = format; | ||
@@ -13,3 +13,2 @@ export class AmplifyLogger implements IAmplifyLogger { | ||
loggerFormat: winston.Logform.Format; | ||
localProjectData!: LocalProjectData; | ||
disabledAmplifyLogging: boolean = process.env.AMPLIFY_CLI_DISABLE_LOGGING === 'true'; | ||
@@ -16,0 +15,0 @@ constructor() { |
@@ -1,2 +0,1 @@ | ||
export type LocalProjectData = {}; | ||
export type LogPayload = { | ||
@@ -3,0 +2,0 @@ message: string; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
116894
691