Skip to content

Commit

Permalink
logger options
Browse files Browse the repository at this point in the history
Shirtiny committed Jan 29, 2023
1 parent 12b9de2 commit 1a6d116
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -16,11 +16,3 @@ const sh_log = new ShLogger();
export { theme, ShLogger, css, Logger, LEVELS };

export default sh_log;

const r = css`
background-color: #292F4C;
color: white;
padding: 2px 5px;
`;

r;
4 changes: 2 additions & 2 deletions src/model/logger.ts
Original file line number Diff line number Diff line change
@@ -48,8 +48,8 @@ export class Logger extends BaseLogger {
private loggerOption: LoggerOption;

constructor(options?: LoggerOption) {
super(options || new LoggerOption());
this.loggerOption = { ...new LoggerOption(), ...options };
super(new LoggerOption(options));
this.loggerOption = new LoggerOption();
}

setLoggerOption(option: object) {

0 comments on commit 1a6d116

Please sign in to comment.