InProcessLogger
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
Update the sub-label of the process log. Pass an empty string to clear.
Write a message directly to the Task.
Get the first transport failure encountered while writing.
Details
at line 20
__construct(Task $task)
Create a new InProcessLogger instance.
in
Logger at line 45
void
line(string $message)
Log a line to the process log.
in
Logger at line 53
void
partial(string $chunk)
Append a chunk of text to the current partial output.
in
Logger at line 61
void
commitPartial()
Commit the accumulated partial text and start fresh.
in
Logger at line 69
void
success(string $message)
Log a success message to the process log.
in
Logger at line 77
void
warning(string $message)
Log a warning message to the process log.
in
Logger at line 85
void
error(string $message)
Log an error message to the process log.
in
Logger at line 93
void
label(string $message)
Update the label of the process log.
in
Logger at line 101
void
subLabel(string $message)
Update the sub-label of the process log. Pass an empty string to clear.
at line 28
protected void
write(string $message, string|null $type = null)
Write a message directly to the Task.
in
Logger at line 130
RuntimeException|null
transportFailure()
Get the first transport failure encountered while writing.