(key *ari.Key, levels string)
| 10 | } |
| 11 | |
| 12 | func (l *logging) Create(key *ari.Key, levels string) (*ari.LogHandle, error) { |
| 13 | k, err := l.c.createRequest(&proxy.Request{ |
| 14 | Kind: "AsteriskLoggingCreate", |
| 15 | Key: key, |
| 16 | AsteriskLoggingChannel: &proxy.AsteriskLoggingChannel{ |
| 17 | Levels: levels, |
| 18 | }, |
| 19 | }) |
| 20 | if err != nil { |
| 21 | return nil, err |
| 22 | } |
| 23 | return ari.NewLogHandle(k, l), nil |
| 24 | } |
| 25 | |
| 26 | func (l *logging) Data(key *ari.Key) (*ari.LogData, error) { |
| 27 | data, err := l.c.dataRequest(&proxy.Request{ |
nothing calls this directly
no test coverage detected