# Class Log

Built in logger for Catapult SDK will be used on exceptions, folders generated relative to working directory.

NOTE if you are using ./logs for something else you can reset the directory using

Catapult\Log::directory('new_directory');

To set off/on the logger

Catapult\Log::on(TRUE);

example output: /logs/catapult_log_12-12-2014-2:05.log

Final
Namespace: Catapult
Located at core/Log.php

## Methods summary

`public static` | # `close( )` close the open logger close the open logger
`public static` | # `find( )` can we find a member for this log. match by Y-M-D can we find a member for this log. match by Y-M-D
`public static` | # `open( )` open the current log. Set by day. If we cannot open a folder, file set catapult logging off open the current log. Set by day. If we cannot open a folder, file set catapult logging off by default this will output in the current directory. If there is a logs directory in the folder, it will use that
`public static` | # `write( time: $time = '', object: $object = 'CALL', file: $message = '' )` Write to the log accept a date, object and format Write to the log accept a date, object and format Format: {file} - {app_id} [{time}] "{object}" {message} #### Parameters $time timestamp $object Model Object $message
`public static` | # `isOn( )`
`public static` | # `on( on: $on = TRUE )` turn on/off logging turn on/off logging #### Parameters $on TRUE|FALSE

## Properties summary

`public static boolean` | $on | # `TRUE`
`public static` | $log_file | # ``
`public static` | $logger_opts General purpose options for logger General purpose options for logger | # `array( "path" => __DEFAULT_LOG_USER_PATH__, "mode" => "a" // usually append unless needed for read only )`