mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +00:00
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:
parent
848ac11495
commit
c5a22a1a97
Notes:
github-actions[bot]
2025-03-04 20:34:51 +00:00
Author: https://github.com/trflynn89
Commit: c5a22a1a97
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3801
Reviewed-by: https://github.com/AtkinsSJ
5 changed files with 155 additions and 2 deletions
22
Libraries/LibWebView/ConsoleOutput.h
Normal file
22
Libraries/LibWebView/ConsoleOutput.h
Normal 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;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue