Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GDebugController
is an interface to expose control of debugging features and
debug output.
It is implemented on Linux using DebugControllerDBus
, which
exposes a D-Bus interface to allow authenticated peers to control debug
features in this process.
Whether debug output is enabled is exposed as
DebugController
:debug-enabled
. This controls
logSetDebugEnabled
by default. Application code may
connect to the Object::notify signal for it
to control other parts of its debug infrastructure as necessary.
If your application or service is using the default GLib log writer function,
creating one of the built-in implementations of GDebugController
should be
all that’s needed to dynamically enable or disable debug output.
Since: 2.72
Synopsis
- newtype DebugController = DebugController (ManagedPtr DebugController)
- class (GObject o, IsDescendantOf DebugController o) => IsDebugController o
- toDebugController :: (MonadIO m, IsDebugController o) => o -> m DebugController
- debugControllerGetDebugEnabled :: (HasCallStack, MonadIO m, IsDebugController a) => a -> m Bool
- debugControllerSetDebugEnabled :: (HasCallStack, MonadIO m, IsDebugController a) => a -> Bool -> m ()
- constructDebugControllerDebugEnabled :: (IsDebugController o, MonadIO m) => Bool -> m (GValueConstruct o)
- getDebugControllerDebugEnabled :: (MonadIO m, IsDebugController o) => o -> m Bool
- setDebugControllerDebugEnabled :: (MonadIO m, IsDebugController o) => o -> Bool -> m ()
Exported types
newtype DebugController Source #
Memory-managed wrapper type.
Instances
Eq DebugController Source # | |
Defined in GI.Gio.Interfaces.DebugController (==) :: DebugController -> DebugController -> Bool # (/=) :: DebugController -> DebugController -> Bool # | |
GObject DebugController Source # | |
Defined in GI.Gio.Interfaces.DebugController | |
ManagedPtrNewtype DebugController Source # | |
Defined in GI.Gio.Interfaces.DebugController | |
TypedObject DebugController Source # | |
Defined in GI.Gio.Interfaces.DebugController | |
HasParentTypes DebugController Source # | |
Defined in GI.Gio.Interfaces.DebugController | |
IsGValue (Maybe DebugController) Source # | Convert |
Defined in GI.Gio.Interfaces.DebugController gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe DebugController -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe DebugController) # | |
type ParentTypes DebugController Source # | |
Defined in GI.Gio.Interfaces.DebugController |
class (GObject o, IsDescendantOf DebugController o) => IsDebugController o Source #
Type class for types which can be safely cast to DebugController
, for instance with toDebugController
.
Instances
(GObject o, IsDescendantOf DebugController o) => IsDebugController o Source # | |
Defined in GI.Gio.Interfaces.DebugController |
toDebugController :: (MonadIO m, IsDebugController o) => o -> m DebugController Source #
Cast to DebugController
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, init, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getDebugEnabled, getProperty, getQdata.
Setters
getDebugEnabled
debugControllerGetDebugEnabled Source #
:: (HasCallStack, MonadIO m, IsDebugController a) | |
=> a |
|
-> m Bool | Returns: |
Get the value of DebugController
:debug-enabled
.
Since: 2.72
setDebugEnabled
debugControllerSetDebugEnabled Source #
:: (HasCallStack, MonadIO m, IsDebugController a) | |
=> a |
|
-> Bool |
|
-> m () |
Set the value of DebugController
:debug-enabled
.
Since: 2.72
Properties
debugEnabled
True
if debug output should be exposed (for example by forwarding it to
the journal), False
otherwise.
Since: 2.72
constructDebugControllerDebugEnabled :: (IsDebugController o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “debug-enabled
” property. This is rarely needed directly, but it is used by new
.
getDebugControllerDebugEnabled :: (MonadIO m, IsDebugController o) => o -> m Bool Source #
Get the value of the “debug-enabled
” property.
When overloading is enabled, this is equivalent to
get
debugController #debugEnabled
setDebugControllerDebugEnabled :: (MonadIO m, IsDebugController o) => o -> Bool -> m () Source #
Set the value of the “debug-enabled
” property.
When overloading is enabled, this is equivalent to
set
debugController [ #debugEnabled:=
value ]