Hawk - PHP documentation
  • Namespace
  • Class
  • Tree

Namespaces

  • Hawk
    • View
      • Plugins

Classes

  • App
  • ButtonInput
  • Cache
  • CheckboxInput
  • ColorInput
  • Conf
  • Controller
  • Crypto
  • DatabaseSessionHandler
  • DatetimeInput
  • DB
  • DBExample
  • DeleteInput
  • Dialogbox
  • EmailInput
  • ErrorHandler
  • Event
  • FileInput
  • FileSystem
  • FloatInput
  • Form
  • FormFieldset
  • FormInput
  • GenericModel
  • GifImage
  • HawkApi
  • HawkUpdater
  • HiddenInput
  • HtmlInput
  • HTTPRequest
  • Icon
  • Image
  • IntegerInput
  • ItemList
  • ItemListField
  • JpegImage
  • Lang
  • Language
  • LeftSidebarTab
  • Less
  • Logger
  • Mail
  • MenuItem
  • Model
  • NoSidebarTab
  • NumberInput
  • ObjectInput
  • Option
  • Panel
  • PasswordInput
  • Permission
  • Plugin
  • PluginInstaller
  • PngImage
  • ProfileQuestion
  • ProfileQuestionValue
  • RadioInput
  • Request
  • Response
  • RightSidebarTab
  • Role
  • RolePermission
  • Route
  • Router
  • SelectInput
  • Session
  • Singleton
  • SubmitInput
  • Tabs
  • TextareaInput
  • TextInput
  • Theme
  • TimeInput
  • Upload
  • User
  • View
  • ViewPlugin
  • Widget
  • WysiwygInput

Traits

  • Utils

Exceptions

  • AppStopException
  • DBExampleException
  • DBException
  • FileSystemException
  • HawkApiException
  • ImageException
  • MailException
  • UploadException
  • ViewException

Class Logger

This class is used to log data in /logs directory. You can use it to log the action of the users on the application, for example to make stats.

Hawk\Singleton
Extended by Hawk\Logger
Final
Namespace: Hawk
Package: Core
Located at Logger.php

Methods summary

public
# info( string $message )

Log info data. Use this function to log user action like form submission

Log info data. Use this function to log user action like form submission

Parameters

$message
The message to write
public
# debug( string $message )

Log debug data. This function is used to log script execution steps

Log debug data. This function is used to log script execution steps

Parameters

$message
The message to write
public
# notice( string $message )

Log notice data. This function is used to log anormal non blocking usage

Log notice data. This function is used to log anormal non blocking usage

Parameters

$message
The message to write
public
# warning( string $message )

Log warning data. This function is used to log actions that didn't work because of user bad action (eg form badly completed)

Log warning data. This function is used to log actions that didn't work because of user bad action (eg form badly completed)

Parameters

$message
The message to write
public
# error( string $message )

Log error data. This function is used to log actions that didn't work because of a script error

Log error data. This function is used to log actions that didn't work because of a script error

Parameters

$message
The message to write

Methods inherited from Hawk\Singleton

__construct(), getInstance()

Constants summary

string LEVEL_DEBUG
# 'debug'
string LEVEL_INFO
# 'info'
string LEVEL_NOTICE
# 'notice'
string LEVEL_WARNING
# 'warning'
string LEVEL_ERROR
# 'error'
integer MAX_FILE_SIZE
# 204800
integer MAX_FILES_BY_LEVEL
# 9

Properties summary

protected static Hawk\Logger $instance

The logger instance

The logger instance

#
Hawk - PHP documentation API documentation generated by ApiGen