From 9d73323121c0b372398e365faafe8610937ac49b Mon Sep 17 00:00:00 2001 From: 3went2 Date: Thu, 3 Aug 2017 14:34:40 +0800 Subject: [PATCH] rename setLogger to setLoggers --- README.md | 2 +- src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f1155fa..07709cb 100755 --- a/README.md +++ b/README.md @@ -173,7 +173,7 @@ Returns a `logger`. #### setConfig(keyOrConfig[, value]) - Alias: `setLogger` + Alias: `setLoggers` Initialize configure. diff --git a/src/index.js b/src/index.js index ca06621..bbb1f63 100644 --- a/src/index.js +++ b/src/index.js @@ -383,6 +383,6 @@ export function createLogger(category, description) { return logSystem.getLogger(category); } -export const setLogger = setConfig; +export const setLoggers = setConfig; export const logger = createLogger(defaultCategory, defaultAppenders.con); export default logger;