/** * Create a new Metadata Instance * @param array $settings configuration settings. */ public function __construct($settings) { $this->settings = $settings; // Add logging to metadata parsers $this->pathToLog = $settings['LOGGING']['path_to_log']; // Create log channel for metadataparsers $this->log = new \Monolog\Logger('metadataparsers'); $this->logStreamHandler = new \Monolog\Handler\StreamHandler($this->pathToLog, Logger::WARNING); $this->log->pushHandler($this->logStreamHandler); }
/** * Create a new FileManipulator Instance * @param array $settings configuration settings. */ public function __construct($settings) { // This path is relative to mik. $this->schema_location = 'extras/scripts/mods-3-5.xsd'; $this->settings = $settings; // Add logging to metadata parsers $this->pathToLog = $settings['LOGGING']['path_to_log']; // Create log channel for metadataparsers $this->log = new \Monolog\Logger('filemanipulators'); $this->logStreamHandler = new \Monolog\Handler\StreamHandler($this->pathToLog, Logger::INFO); $this->log->pushHandler($this->logStreamHandler); }
public function __construct() { $this->connection = new Connection(); $this->Account = new Account(); $this->Security = new Security(); $this->AssetClass = new AssetClass(); $this->AssetSubclass = new AssetSubclass(); $this->Transaction = new Transaction(); $this->Client = new Client(); $this->Ria = new Ria(); $this->log = new Logger('filesys'); $this->log->pushHandler(new StreamHandler(__DIR__ . '/../logs/rebalancer.log', Logger::WARNING)); $this->connection = new Connection(); $this->db = $this->connection->getMySqlDB(); }