-
Notifications
You must be signed in to change notification settings - Fork 4
/
mod.ts
56 lines (48 loc) · 1.33 KB
/
mod.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright 2020-2024 the optic authors. All rights reserved. MIT license.
// Logger
export {
Level,
levelToName,
longestLevelName,
nameToLevel,
} from "./logger/levels.ts";
export { Logger } from "./logger/logger.ts";
// Streams
// (see also https://github.com/onjara/optic/blob/master/streams/fileStream/mod.ts)
export { BaseStream } from "./streams/baseStream.ts";
export { ConsoleStream } from "./streams/consoleStream.ts";
// Types
export { TimeUnit, ValidationError } from "./types.ts";
export type {
DateTimeFormatter,
DateTimeFormatterFn,
Filter,
FilterFn,
Formatter,
LogMeta,
LogRecord,
MeasureFormatter,
Monitor,
MonitorFn,
ProfileMark,
Stream,
Transformer,
TransformerFn,
} from "./types.ts";
// Profiling
export {
between,
from,
NOW,
PROCESS_START,
to,
UnknownProfileMark,
} from "./logger/profileMeasure.ts";
// For transformer implementations, see:
// https://github.com/onjara/optic/blob/master/transformers/propertyRedaction.ts
// https://github.com/onjara/optic/blob/master/transformers/regExpReplacer.ts
// For filter implementations, see:
// https://github.com/onjara/optic/blob/master/filters/regExpFilter.ts
// https://github.com/onjara/optic/blob/master/filters/subStringFilter.ts
// For formatter implementations, see:
// https://github.com/onjara/optic/blob/master/formatters/mod.ts