Skip to content

Commit c359e54

Browse files
committed
fix(logger): use UnformattedAttributes as input type for formatting
1 parent 7cc2111 commit c359e54

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/logger/src/formatter/LogFormatter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { LogFormatterInterface } from '.';
2-
import { DefaultLoggerAttributes, LogAttributes } from '../../types';
2+
import { LogAttributes, UnformattedAttributes } from '../../types';
33

44
abstract class LogFormatter implements LogFormatterInterface {
55

6-
abstract format(attributes: DefaultLoggerAttributes): LogAttributes;
6+
abstract format(attributes: UnformattedAttributes): LogAttributes;
77

88
public formatTimestamp(now: Date): string {
99
return now.toISOString();

packages/logger/src/formatter/LogFormatterInterface.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { DefaultLoggerAttributes, LogAttributes } from '../../types';
1+
import { LogAttributes, UnformattedAttributes } from '../../types';
22

33
interface LogFormatterInterface {
44

5-
format(attributes: DefaultLoggerAttributes): LogAttributes
5+
format(attributes: UnformattedAttributes): LogAttributes
66

77
}
88

0 commit comments

Comments
 (0)