LibDevTools+LibWebView: Implement basic support for console logging

This implements support for basic usage of console.log and friends. It
does not implement console.assert, console.trace, console.group, etc.
This commit is contained in:
Timothy Flynn 2025-03-04 08:45:36 -05:00 committed by Tim Flynn
commit c5a22a1a97
Notes: github-actions[bot] 2025-03-04 20:34:51 +00:00
5 changed files with 155 additions and 2 deletions

View file

@ -0,0 +1,22 @@
/*
* Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/JsonValue.h>
#include <AK/Time.h>
#include <AK/Vector.h>
#include <LibJS/Console.h>
namespace WebView {
struct ConsoleOutput {
JS::Console::LogLevel level;
UnixDateTime timestamp;
Vector<JsonValue> arguments;
};
}