VuFind API Documentation

Office365 extends Post
in package

This class extends the Laminas Logging to send errors to Office365 webhooks.

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Main Site

Table of Contents

$client  : Client
Pre-configured http client
$contentType  : string
Content type
$title  : string
The title for generated cards.
$url  : int
Holds the verbosity level
$verbosity  : int
Holds the verbosity level
__construct()  : mixed
Constructor
setContentType()  : void
Set verbosity
setVerbosity()  : void
Set verbosity
applyVerbosity()  : array<string|int, mixed>
Apply verbosity setting to message.
doWrite()  : void
Write a message to the log.
getBody()  : string
Get data for raw body

Properties

$client

Pre-configured http client

protected Client $client = null

$contentType

Content type

protected string $contentType = 'application/x-www-form-urlencoded'

$title

The title for generated cards.

protected string $title

$url

Holds the verbosity level

protected int $url = null

$verbosity

Holds the verbosity level

protected int $verbosity = 1

Methods

__construct()

Constructor

public __construct(string $url, Client $client[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
$url : string

URL to open as a stream

$client : Client

Pre-configured http client

$options : array<string|int, mixed> = []

Optional settings (may contain 'channel' for the Slack channel to use and/or 'name' for the username messages are posted under)

Tags
throws
Exception
Return values
mixed

setContentType()

Set verbosity

public setContentType(int $type) : void
Parameters
$type : int

content type string

Return values
void

setVerbosity()

Set verbosity

public setVerbosity(int $verb) : void
Parameters
$verb : int

verbosity setting

Return values
void

applyVerbosity()

Apply verbosity setting to message.

protected applyVerbosity(array<string|int, mixed> $event) : array<string|int, mixed>
Parameters
$event : array<string|int, mixed>

event data

Return values
array<string|int, mixed>

doWrite()

Write a message to the log.

protected doWrite(array<string|int, mixed> $event) : void
Parameters
$event : array<string|int, mixed>

event data

Tags
throws
RuntimeException
Return values
void

getBody()

Get data for raw body

protected getBody(array<string|int, mixed> $event) : string
Parameters
$event : array<string|int, mixed>

event data

Return values
string

Search results