gi-glib-2.0.12: GLib bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GLib.Structs.LogField

Contents

Description

Structure representing a single field in a structured log entry. See g_log_structured() for details.

Log fields may contain arbitrary values, including binary with embedded nul bytes. If the field contains a string, the string must be UTF-8 encoded and have a trailing nul byte. Otherwise, length must be set to a non-negative value.

Synopsis

Exported types

newtype LogField Source #

Constructors

LogField (ManagedPtr LogField) 

Instances

WrappedPtr LogField Source # 
(~) AttrOpTag tag AttrSet => Constructible LogField tag Source # 

Methods

new :: MonadIO m => (ManagedPtr LogField -> LogField) -> [AttrOp LogField tag] -> m LogField #

((~) * info (ResolveLogFieldMethod t LogField), MethodInfo * info LogField p) => IsLabel t (LogField -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> LogField -> p #

((~) * info (ResolveLogFieldMethod t LogField), MethodInfo * info LogField p) => IsLabelProxy t (LogField -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> LogField -> p #

HasAttributeList * LogField Source # 
type AttributeList LogField Source # 

newZeroLogField :: MonadIO m => m LogField Source #

Construct a LogField struct initialized to zero.

Properties

key

length

value