class InProcessLogger extends Logger

Logger implementation for in-process Task execution.

This logger writes directly to the Task instance instead of crossing a process boundary. It is used by static and coroutine task renderers.

Constants

DEFAULT_WRITE_TIMEOUT_SECONDS

How long a write may wait for the renderer to accept output.

This must remain well above the public render interval.

Properties

protected RuntimeException|null $transportFailure

The first transport failure encountered while writing.

from  Logger
protected string $identifier

The identifier retained for Laravel-compatible construction and subclass state.

from  Logger

Methods

__construct(Task $task)

Create a new InProcessLogger instance.

void
line(string $message)

Log a line to the process log.

from  Logger
void
partial(string $chunk)

Append a chunk of text to the current partial output.

from  Logger
void
commitPartial()

Commit the accumulated partial text and start fresh.

from  Logger
void
success(string $message)

Log a success message to the process log.

from  Logger
void
warning(string $message)

Log a warning message to the process log.

from  Logger
void
error(string $message)

Log an error message to the process log.

from  Logger
void
label(string $message)

Update the label of the process log.

from  Logger
void
subLabel(string $message)

Update the sub-label of the process log. Pass an empty string to clear.

from  Logger
void
write(string $message, string|null $type = null)

Write a message directly to the Task.

transportFailure()

Get the first transport failure encountered while writing.

from  Logger

Details

at line 20
__construct(Task $task)

Create a new InProcessLogger instance.

Parameters

Task $task

in Logger at line 45
void line(string $message)

Log a line to the process log.

Parameters

string $message

Return Value

void

in Logger at line 53
void partial(string $chunk)

Append a chunk of text to the current partial output.

Parameters

string $chunk

Return Value

void

in Logger at line 61
void commitPartial()

Commit the accumulated partial text and start fresh.

Return Value

void

in Logger at line 69
void success(string $message)

Log a success message to the process log.

Parameters

string $message

Return Value

void

in Logger at line 77
void warning(string $message)

Log a warning message to the process log.

Parameters

string $message

Return Value

void

in Logger at line 85
void error(string $message)

Log an error message to the process log.

Parameters

string $message

Return Value

void

in Logger at line 93
void label(string $message)

Update the label of the process log.

Parameters

string $message

Return Value

void

in Logger at line 101
void subLabel(string $message)

Update the sub-label of the process log. Pass an empty string to clear.

Parameters

string $message

Return Value

void

at line 28
protected void write(string $message, string|null $type = null)

Write a message directly to the Task.

Parameters

string $message
string|null $type

Return Value

void

in Logger at line 130
RuntimeException|null transportFailure()

Get the first transport failure encountered while writing.

Return Value

RuntimeException|null