mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 15:43:20 +00:00

This implements support for basic usage of console.log and friends. It does not implement console.assert, console.trace, console.group, etc.
22 lines
366 B
C++
22 lines
366 B
C++
/*
|
|
* 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;
|
|
};
|
|
|
|
}
|