function log($message, $type = null, $explicit = false) {
		try {
			$time = date('Y-m-d|H:i:s');
			if ($type === null) {
				$this->appendToFile(date('Y/m/d'), "[$time] $message", $explicit);
			}
			else { // type !== null
				$this->appendToFile($type, "[$time] $message", $explicit);
			}
		}
		catch (\Exception $e) {
			$this->failedLogging($e, $message);
		}
	}
function log($message, $type = null, $explicit = false) {
		try {
			$time = date('Y-m-d|H:i:s');
			if ($type === null) {
				$this->appendToFile(date('Y/m/d'), "[$time] $message", $explicit);
			}
			else { // type !== null
				$this->appendToFile($type, "[$time] $message", $explicit);
			}
		}
		catch (\Exception $e) {
			$this->failedLogging($e, $message);
		}
	}
function log ( $ message , $ type = null , $ explicit = false ) { try { $ time = date ( 'Y-m-d|H:i:s' ) ; if ( $ type === null ) { $ this -> appendToFile ( date ( 'Y/m/d' ) , "[$time] $message" , $ explicit ) ; } else { // type !== null $ this -> appendToFile ( $ type , "[$time] $message" , $ explicit ) ; } } catch ( \ Exception $ e ) { $ this -> failedLogging ( $ e , $ message ) ; } }
Logs a message. The type can be used as a hint to the logger on how to
log the message. If the logger doesn't understand the type a file with
the type name will be created as default behavior.

Types should not use illegal file characters.
Logs a message . The type can be used as a hint to the logger on how to log the message . If the logger doesn t understand the type a file with the type name will be created as default behavior .