Snapd.Log

g GObject.Object GObject.Object Snapd.Log Snapd.Log GObject.Object->Snapd.Log

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_message ()

get_pid ()

get_sid ()

get_timestamp ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

message

str

r/w/co

Message

pid

str

r/w/co

Process ID

sid

str

r/w/co

Syslog ID

timestamp

GLib.DateTime

r/w/co

Timestamp

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Snapd.Log(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Snapd.LogClass

Snapd.Log is an opaque data structure and can only be accessed using the provided functions.

New in version 1.64.

get_message()
Returns:

a log message.

Return type:

str

Get the message of this log, e.g. “service started”

New in version 1.64.

get_pid()
Returns:

a process id.

Return type:

str

Get the process ID of this log, e.g. “1234”

New in version 1.64.

get_sid()
Returns:

a syslog id.

Return type:

str

Get the syslog id of this log, e.g. “cups.cups-browsed”

New in version 1.64.

get_timestamp()
Returns:

a timestamp.

Return type:

GLib.DateTime

Get the time this log was generated.

New in version 1.64.

Property Details

Snapd.Log.props.message
Name:

message

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Message

Snapd.Log.props.pid
Name:

pid

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Process ID

Snapd.Log.props.sid
Name:

sid

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Syslog ID

Snapd.Log.props.timestamp
Name:

timestamp

Type:

GLib.DateTime

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Timestamp