GitHub

API reference for Console.

Node's console, in Python spelling. Each logging method writes one entry made of args.

Functions

assert_

assert_(condition, *args) -> None

Write args as an assertion failure unless condition.

ParameterTypeDescription
conditionbool
argsobject = ()
def assert_(self, condition: bool, *args: object) -> None:
    """Write ``args`` as an assertion failure unless ``condition``."""
    ...

clear

clear() -> None
def clear(self) -> None: ...

count

count(label='default') -> None
ParameterTypeDescription
labelstr = 'default'
def count(self, label: str = "default") -> None: ...

count_reset

count_reset(label='default') -> None
ParameterTypeDescription
labelstr = 'default'
def count_reset(self, label: str = "default") -> None: ...

debug

debug(*args) -> None
ParameterTypeDescription
argsobject = ()
def debug(self, *args: object) -> None: ...

dir

dir(item) -> None
ParameterTypeDescription
itemobject
def dir(self, item: object) -> None: ...

error

error(*args) -> None
ParameterTypeDescription
argsobject = ()
def error(self, *args: object) -> None: ...

group

group(*args) -> None

Write args (if any) and indent what follows until group_end.

ParameterTypeDescription
argsobject = ()
def group(self, *args: object) -> None:
    """Write ``args`` (if any) and indent what follows until
    ``group_end``."""
    ...

group_collapsed

group_collapsed(*args) -> None
ParameterTypeDescription
argsobject = ()
def group_collapsed(self, *args: object) -> None: ...

group_end

group_end() -> None
def group_end(self) -> None: ...

info

info(*args) -> None
ParameterTypeDescription
argsobject = ()
def info(self, *args: object) -> None: ...

log

log(*args) -> None
ParameterTypeDescription
argsobject = ()
def log(self, *args: object) -> None: ...

table

table(data, properties=None) -> None
ParameterTypeDescription
dataobject
propertiesSequence[str] | None = None
def table(self, data: object, properties: Sequence[str] | None = None) -> None: ...

time

time(label='default') -> None
ParameterTypeDescription
labelstr = 'default'
def time(self, label: str = "default") -> None: ...

time_end

time_end(label='default') -> None
ParameterTypeDescription
labelstr = 'default'
def time_end(self, label: str = "default") -> None: ...

time_log

time_log(label='default', *args) -> None
ParameterTypeDescription
labelstr = 'default'
argsobject = ()
def time_log(self, label: str = "default", *args: object) -> None: ...

trace

trace(*args) -> None
ParameterTypeDescription
argsobject = ()
def trace(self, *args: object) -> None: ...

warn

warn(*args) -> None
ParameterTypeDescription
argsobject = ()
def warn(self, *args: object) -> None: ...