Constructors
constructor
- new Logger(version: string): ethers.ethers.utils.Logger
-
Properties
Readonly
version
version: string
Static
errors
Static
levels
levels: typeof LogLevel
Methods
_log
- _log(logLevel: LogLevel, args: any[]): void
-
Parameters
-
logLevel: LogLevel
-
args: any[]
Returns void
assert
- assert(condition: any, message: string, code?: errors, params?: any): void
-
Parameters
-
condition: any
-
message: string
-
Optional
code: errors
-
Optional
params: any
Returns void
assertArgument
- assertArgument(condition: any, message: string, name: string, value: any): void
-
Parameters
-
condition: any
-
message: string
-
name: string
-
value: any
Returns void
checkAbstract
- checkAbstract(target: any, kind: any): void
-
Returns void
checkArgumentCount
- checkArgumentCount(count: number, expectedCount: number, message?: string): void
-
Parameters
-
count: number
-
expectedCount: number
-
Optional
message: string
Returns void
checkNew
- checkNew(target: any, kind: any): void
-
Returns void
checkNormalize
- checkNormalize(message?: string): void
-
Returns void
checkSafeUint53
- checkSafeUint53(value: number, message?: string): void
-
Parameters
-
value: number
-
Optional
message: string
Returns void
debug
- debug(...args: any[]): void
-
Returns void
info
- info(...args: any[]): void
-
Returns void
makeError
- makeError(message: string, code?: errors, params?: any): Error
-
Parameters
-
message: string
-
Optional
code: errors
-
Optional
params: any
Returns Error
throwArgumentError
- throwArgumentError(message: string, name: string, value: any): never
-
Parameters
-
message: string
-
name: string
-
value: any
Returns never
throwError
- throwError(message: string, code?: errors, params?: any): never
-
Parameters
-
message: string
-
Optional
code: errors
-
Optional
params: any
Returns never
warn
- warn(...args: any[]): void
-
Returns void
Static
setCensorship
- setCensorship(censorship: boolean, permanent?: boolean): void
-
Parameters
-
censorship: boolean
-
Optional
permanent: boolean
Returns void
Static
setLogLevel
- setLogLevel(logLevel: LogLevel): void
-
Returns void