Skip to content

Commit

Permalink
Merge pull request #16 from mcarvin8/remove-log
Browse files Browse the repository at this point in the history
fix: import log4js from xml-disassembler
  • Loading branch information
mcarvin8 authored Jan 4, 2025
2 parents 4eea0bb + 1c953e3 commit 342a4af
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"
},
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 { XmlToJsonDisassembler } from "./service/xml2jsonDisassembler";
export { JsonToXmlReassembler } from "./service/json2xmlReassembler";

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 342a4af

Please sign in to comment.