Overview

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CDN
      • Resource
    • CloudMonitoring
      • Collection
      • Exception
      • Resource
    • Common
      • Collection
      • Constants
      • Exceptions
      • Http
        • Message
      • Log
      • Resource
      • Service
    • Compute
      • Constants
      • Exception
      • Resource
    • Database
      • Resource
    • DNS
      • Collection
      • Resource
    • Identity
      • Constants
      • Resource
    • Image
      • Enum
      • Resource
        • JsonPatch
        • Schema
    • LoadBalancer
      • Collection
      • Enum
      • Resource
    • Networking
      • Resource
    • ObjectStore
      • Constants
      • Enum
      • Exception
      • Resource
      • Upload
    • Orchestration
      • Resource
    • Queues
      • Collection
      • Exception
      • Resource
    • Volume
      • Resource
  • PHP

Classes

  • Logger
  • Overview
  • Namespace
  • Class
  • Tree

Class Logger

Basic logger for OpenCloud which extends FIG's PSR-3 standard logger.

Psr\Log\AbstractLogger
Extended by OpenCloud\Common\Log\Logger
Namespace: OpenCloud\Common\Log
Link: https://github.com/php-fig/log
Located at OpenCloud/Common/Log/Logger.php
Methods summary
public
# __construct( mixed $enabled = false )
public static
# newInstance( )
public OpenCloud\Common\Log\Logger
# setEnabled( boolean $enabled )

Enable or disable the debug class.

Enable or disable the debug class.

Parameters

$enabled

Returns

OpenCloud\Common\Log\Logger
self
public boolean
# isEnabled( )

Is the debug class enabled?

Is the debug class enabled?

Returns

boolean
bool
public
# setOptions( array $options = array() )

Set an array of options.

Set an array of options.

Parameters

$options
public array
# getOptions( )

Get all options.

Get all options.

Returns

array
array
public
# setOption( string $key, string $value )

Set an individual option.

Set an individual option.

Parameters

$key
$value
public string|null
# getOption( string $key )

Get an individual option.

Get an individual option.

Parameters

$key

Returns

string|null
string|null
public
# log( string $level, string $message, array $context = array() )

Outputs a log message if necessary.

Outputs a log message if necessary.

Parameters

$level
$logLevel
$message
$context
public static
# deprecated( mixed $method, mixed $new )

Helper method, use PSR-3 warning function for deprecation warnings

Helper method, use PSR-3 warning function for deprecation warnings

See

http://www.php-fig.org/psr/psr-3/
API documentation generated by ApiGen 2.8.0