Snapd.Log¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Message |
||
r/w/co |
Process ID |
||
r/w/co |
Syslog ID |
||
r/w/co |
Timestamp |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Snapd.Log(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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:
Get the message of this log, e.g. “service started”
New in version 1.64.
- get_pid()¶
- Returns:
a process id.
- Return type:
Get the process ID of this log, e.g. “1234”
New in version 1.64.
- get_sid()¶
- Returns:
a syslog id.
- Return type:
Get the syslog id of this log, e.g. “cups.cups-browsed”
New in version 1.64.
- get_timestamp()¶
- Returns:
a timestamp.
- Return type:
Get the time this log was generated.
New in version 1.64.
Property Details¶
- Snapd.Log.props.message¶
- Name:
message
- Type:
- Default Value:
- Flags:
Message
- Snapd.Log.props.pid¶
- Name:
pid
- Type:
- Default Value:
- Flags:
Process ID
- Snapd.Log.props.sid¶
- Name:
sid
- Type:
- Default Value:
- Flags:
Syslog ID
- Snapd.Log.props.timestamp¶
- Name:
timestamp
- Type:
- Default Value:
- Flags:
Timestamp