Files
development/vendor/felixfbecker/language-server-protocol/src/LogTrace.php
2023-03-09 16:27:10 +09:00

40 lines
991 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace LanguageServerProtocol;
/**
* A notification to log the trace of the servers execution.
* The amount and content of these notifications depends on the
* current trace configuration. If trace is 'off', the server
* should not send any logTrace notification. If trace is
* 'messages', the server should not add the 'verbose' field in
* the LogTraceParams.
*
* $/logTrace should be used for systematic trace reporting.
* For single debugging messages, the server should send
* window/logMessage notifications.
*/
class LogTrace
{
/**
* The message to be logged.
*
* @var string
*/
public $message;
/**
* Additional information that can be computed if the `trace` configuration
* is set to `'verbose'`
*
* @var string|null
*/
public $verbose;
public function __construct(string $message, string $verbose = null)
{
$this->message = $message;
$this->verbose = $verbose;
}
}