amplify-cli-logger
Advanced tools
Comparing version 1.2.2-cdkv2.0 to 1.2.2-rc.f14440eb3.0
@@ -7,11 +7,11 @@ ## API Report File for "amplify-cli-logger" | ||
// @public (undocumented) | ||
export const LocalLogDirectory: string; | ||
// Warning: (ae-forgotten-export) The symbol "IAmplifyLogger" needs to be exported by the entry point index.d.ts | ||
// | ||
// @public (undocumented) | ||
export const logger: IAmplifyLogger; | ||
export const getAmplifyLogger: () => IAmplifyLogger; | ||
// @public (undocumented) | ||
export const LocalLogDirectory: string; | ||
// @public (undocumented) | ||
export const Redactor: (arg: string | undefined) => string; | ||
@@ -18,0 +18,0 @@ |
@@ -6,10 +6,13 @@ # Change Log | ||
## [1.2.2-cdkv2.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-logger@1.2.1...amplify-cli-logger@1.2.2-cdkv2.0) (2022-12-01) | ||
## [1.2.2-rc.f14440eb3.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-logger@1.2.1...amplify-cli-logger@1.2.2-rc.f14440eb3.0) (2022-12-12) | ||
**Note:** Version bump only for package amplify-cli-logger | ||
### Bug Fixes | ||
* improved resolution message on permissions error ([#11558](https://github.com/aws-amplify/amplify-cli/issues/11558)) ([c220921](https://github.com/aws-amplify/amplify-cli/commit/c2209211cc76b1b65ac2b50391456c688f42d795)) | ||
## [1.2.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-logger@1.2.0...amplify-cli-logger@1.2.1) (2022-10-13) | ||
@@ -16,0 +19,0 @@ |
import { IAmplifyLogger } from './IAmplifyLogger'; | ||
export { Redactor, stringMasker } from './Redactor'; | ||
export declare const logger: IAmplifyLogger; | ||
export declare const LocalLogDirectory: string; | ||
export declare const getAmplifyLogger: () => IAmplifyLogger; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LocalLogDirectory = exports.logger = exports.stringMasker = exports.Redactor = void 0; | ||
exports.getAmplifyLogger = exports.LocalLogDirectory = exports.stringMasker = exports.Redactor = void 0; | ||
const AmplifyLogger_1 = require("./AmplifyLogger"); | ||
@@ -9,4 +9,11 @@ const constants_1 = require("./constants"); | ||
Object.defineProperty(exports, "stringMasker", { enumerable: true, get: function () { return Redactor_1.stringMasker; } }); | ||
exports.logger = new AmplifyLogger_1.AmplifyLogger(); | ||
exports.LocalLogDirectory = constants_1.constants.LOG_DIRECTORY; | ||
let logger; | ||
const getAmplifyLogger = () => { | ||
if (!logger) { | ||
logger = new AmplifyLogger_1.AmplifyLogger(); | ||
} | ||
return logger; | ||
}; | ||
exports.getAmplifyLogger = getAmplifyLogger; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "amplify-cli-logger", | ||
"version": "1.2.2-cdkv2.0", | ||
"version": "1.2.2-rc.f14440eb3.0", | ||
"description": "Amplify CLI Logger", | ||
@@ -47,3 +47,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "1182e310ccaa217b1f2ab842baf585ec74b3099d" | ||
"gitHead": "6ed7e174095ce586a6c6bd0fb393ba2afb256d26" | ||
} |
import { AmplifyLogger } from './AmplifyLogger'; | ||
import { IAmplifyLogger } from './IAmplifyLogger'; | ||
import { constants } from './constants'; | ||
export { Redactor, stringMasker } from './Redactor'; | ||
export const logger: IAmplifyLogger = new AmplifyLogger(); | ||
export const LocalLogDirectory = constants.LOG_DIRECTORY; | ||
let logger: IAmplifyLogger| undefined; | ||
/** | ||
* Get the logger instance | ||
*/ | ||
export const getAmplifyLogger = (): IAmplifyLogger => { | ||
if (!logger) { | ||
logger = new AmplifyLogger(); | ||
} | ||
return logger; | ||
}; |
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
111026
667