NetSurf
Enumerations
console.h File Reference

Browser window console stuff. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  browser_window_console_source { BW_CS_INPUT , BW_CS_SCRIPT_ERROR , BW_CS_SCRIPT_CONSOLE }
 Sources of messages which end up in the browser window console. More...
 
enum  browser_window_console_flags {
  BW_CS_FLAG_FOLDABLE = 1 << 0 , BW_CS_FLAG_LEVEL_DEBUG = 0 << 1 , BW_CS_FLAG_LEVEL_LOG = 1 << 1 , BW_CS_FLAG_LEVEL_INFO = 2 << 1 ,
  BW_CS_FLAG_LEVEL_WARN = 3 << 1 , BW_CS_FLAG_LEVEL_ERROR = 4 << 1 , BW_CS_FLAG_LEVEL_MASK = 7 << 1
}
 Flags for browser window console logging. More...
 

Detailed Description

Browser window console stuff.

Definition in file console.h.

Enumeration Type Documentation

◆ browser_window_console_flags

Flags for browser window console logging.

It is valid to bitwise-or some of these flags together where indicated.

Enumerator
BW_CS_FLAG_FOLDABLE 

The log entry is foldable.

Set this to indicate that the text should be folded on the first newline on display. If this is set but there are no newlines in the logged text, the core will unset it before passing on to callbacks or storing the log entry.

BW_CS_FLAG_LEVEL_DEBUG 

Logged at the 'debug' level, please use only one of the LEVEL flags.

BW_CS_FLAG_LEVEL_LOG 

Logged at the 'log' level, please only use one of the LEVEL flags.

BW_CS_FLAG_LEVEL_INFO 

Logged at the 'info' level, please use only one of the LEVEL flags.

BW_CS_FLAG_LEVEL_WARN 

Logged at the 'warn' level, please use only one of the LEVEL flags.

BW_CS_FLAG_LEVEL_ERROR 

Logged at the 'error' level, please use only one of the LEVEL flags.

BW_CS_FLAG_LEVEL_MASK 

Mask for the error level to allow easy comparison using the above.

Definition at line 41 of file console.h.

◆ browser_window_console_source

Sources of messages which end up in the browser window console.

Enumerator
BW_CS_INPUT 

Input from the client.

BW_CS_SCRIPT_ERROR 

Error from some running script.

BW_CS_SCRIPT_CONSOLE 

Logging from some running script.

Definition at line 30 of file console.h.