Skip to content

Commit

Permalink
Remove lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwoodiupui committed Nov 12, 2024
1 parent 83e5062 commit ee76338
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/modules/logging/logging.module.ts
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
import {
createLogger,
transports
} from 'winston';
import * as DailyRotateFile from 'winston-daily-rotate-file';
import { format as logformat } from 'logform';

Check failure on line 1 in src/modules/logging/logging.module.ts

View workflow job for this annotation

GitHub Actions / tests (18.x)

Run autofix to sort these imports!

Check failure on line 1 in src/modules/logging/logging.module.ts

View workflow job for this annotation

GitHub Actions / tests (20.x)

Run autofix to sort these imports!
import {
createLogger,
transports,
} from 'winston';
import DailyRotateFile from 'winston-daily-rotate-file';
import { environment } from 'src/environments/environment';

/* See [winston](https://www.npmjs.com/package/winston) */

/* Create transport appropriate to environment. */
var log_transport;
let log_transport: any;

if (typeof(window) !== 'undefined') {
log_transport = new transports.Console({
stderrLevels: ['error', 'warn'],
consoleWarnLevels: ['error', 'warn'],
});
log_transport = new transports.Console({
stderrLevels: ['error', 'warn'],
consoleWarnLevels: ['error', 'warn'],
});
} else {
log_transport = new transports.DailyRotateFile({
filename: 'server-%DATE%.log',
createSymlink: true,
symlinkName: 'server-current.log',
maxFiles: environment.logging.main.maxFiles || 10,
// maxSize:
// utc:
// level:
// dirname:
});
log_transport = new DailyRotateFile({
filename: 'server-%DATE%.log',
createSymlink: true,
symlinkName: 'server-current.log',
maxFiles: environment.logging.main.maxFiles || 10,
// maxSize:
// utc:
// level:
// dirname:
});
}

/**
Expand All @@ -37,7 +37,7 @@ const logger = createLogger({
format: logformat.combine(
logformat.timestamp(),
logformat.splat(),
logformat.simple()
logformat.simple(),
),
transports: [
log_transport,
Expand Down

0 comments on commit ee76338

Please sign in to comment.