Skip to content

Commit

Permalink
fix: import log4js from xml-disassembler
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarvin8 committed Jan 4, 2025
1 parent 2ae3309 commit 2104081
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"typescript": "^5.7.2"
},
"dependencies": {
"log4js": "^6.9.1",
"tslib": "^2.6.2",
"xml-disassembler": "^1.3.6",
"yaml": "^2.4.1"
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 1 addition & 12 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
import { getLogger, configure } from "log4js";
export { XmlToYamlDisassembler } from "./service/xml2yamlDisassembler";
export { YamlToXmlReassembler } from "./service/yaml2xmlReassembler";

export const logger = getLogger();

export function setLogLevel(level: string) {
getLogger().level = level;
}

configure({
appenders: { disassemble: { type: "file", filename: "disassemble.log" } },
categories: { default: { appenders: ["disassemble"], level: "error" } },
});
export { logger, setLogLevel } from "xml-disassembler";

0 comments on commit 2104081

Please sign in to comment.