@did-btc1/common / Logger
Class: Logger
Defined in: logger.ts:56
A flexible, feature-rich logger with:
- Environment-based filtering
- Namespacing
- File/line tracing
- Timestamps
- Colorized output
Constructors
Constructor
> new Logger(namespace?
): Logger
Defined in: logger.ts:60
Parameters
namespace?
string
Returns
Logger
Methods
debug()
> debug(message?
, ...args?
): Logger
Defined in: logger.ts:84
Parameters
message?
unknown
args?
...unknown
[]
Returns
Logger
error()
> error(message?
, ...args?
): Logger
Defined in: logger.ts:88
Parameters
message?
unknown
args?
...unknown
[]
Returns
Logger
info()
> info(message?
, ...args?
): Logger
Defined in: logger.ts:92
Parameters
message?
unknown
args?
...unknown
[]
Returns
Logger
log()
> log(message?
, ...args?
): Logger
Defined in: logger.ts:104
Parameters
message?
unknown
args?
...unknown
[]
Returns
Logger
newline()
> newline(): Logger
Defined in: logger.ts:108
Returns
Logger
security()
> security(message?
, ...args?
): Logger
Defined in: logger.ts:100
Parameters
message?
unknown
args?
...unknown
[]
Returns
Logger
warn()
> warn(message?
, ...args?
): Logger
Defined in: logger.ts:96
Parameters
message?
unknown
args?
...unknown
[]
Returns
Logger
debug()
> static
debug(message?
, ...args?
): void
Defined in: logger.ts:115
Static methods for convenience (auto-instantiate).
Parameters
message?
unknown
args?
...unknown
[]
Returns
void
error()
> static
error(message?
, ...args?
): void
Defined in: logger.ts:119
Parameters
message?
unknown
args?
...unknown
[]
Returns
void
info()
> static
info(message?
, ...args?
): void
Defined in: logger.ts:123
Parameters
message?
unknown
args?
...unknown
[]
Returns
void
log()
> static
log(message?
, ...args?
): void
Defined in: logger.ts:135
Parameters
message?
unknown
args?
...unknown
[]
Returns
void
newline()
> static
newline(): void
Defined in: logger.ts:139
Returns
void
security()
> static
security(message?
, ...args?
): void
Defined in: logger.ts:131
Parameters
message?
unknown
args?
...unknown
[]
Returns
void
warn()
> static
warn(message?
, ...args?
): void
Defined in: logger.ts:127
Parameters
message?
unknown
args?
...unknown
[]
Returns
void