Datacenter build and management service
https://github.com/joyent/conch-api/blob/master/lib/Conch/Plugin/Logging.pm
Initializes the logger object, and sets up hooks in various places to log request data and process exceptions.
These methods are made available on the $c
object (the invocant of all controller methods,
and therefore other helpers).
Returns the main Conch::Log object for the application, used for most logging.
Returns a secondary Conch::Log object, to log specialized messages to a separate location.
Uses the provided type
in the filename (e.g. type => foo
will log to foo.log
).
Makes the request’s request id available to the logger object.
Starts the request_latency
timer.
Logs the request and its response.
Copyright Joyent, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.