# Copyright (c) 2010 Flowerfire, Inc. All Rights Reserved. php_error = { plugin_version = "1.0.1" # Initial creation - 1.0 # 2011-07-11 - 1.0.1 - MSG - Edited info lines. info.1.manufacturer = "PHP" info.1.device = "Error" info.1.version.1 = "" # The name of the log format log.format.format_label = "PHP Error Log Format" log.miscellaneous.log_data_type = "error" log.miscellaneous.log_format_type = "web_server" # The log is in this format if any of the first ten lines match this regular expression log.format.autodetect_regular_expression = "^\\[[0-9][0-9]-[a-z][a-z][a-z]-[0-9][0-9][0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\] PHP " # This regular expression is used to parse the log fields out of the log entry log.format.parsing_regular_expression = "^\\[([0-9][0-9]-[a-zA-Z][a-z][a-z]-[0-9][0-9][0-9][0-9]) ([0-9][0-9]:[0-9][0-9]:[0-9][0-9])\\] (PHP [^:]+): (.*) in ([^ ]+ on line [0-9]+)" # The format of dates and times in this log log.format.date_format = "auto" log.format.time_format = "auto" # Log fields log.fields = { date = "" time = "" message_type = "" error_type = "" error_location = "" } # log.fields # Database fields database.fields = { date_time = "" day_of_week = "" hour_of_day = "" message_type = "" error_type = "" error_location = "" } # database.fields database.numerical_fields = { events = { label = "$lang_stats.field_labels.events" default = true requires_log_field = false type = "int" display_format_type = "integer" entries_field = true } # events } # database.numerical_fields log.filters = { mark_entry = { label = '$lang_admin.log_filters.mark_entry_label' comment = '$lang_admin.log_filters.mark_entry_comment' value = 'events = 1;' } # mark_entry convert_parentheses = { label = 'convert parentheses' comment = '' value = "error_type = replace_all(replace_all(error_type, '(', '['), ')', ']')" } # mark_entry } # log.filters create_profile_wizard_options = { date_time_tracking = true # How the reports should be grouped in the report menu report_groups = { date_time_group = "" message_type = true error_type = true error_location = true } # report_groups } # create_profile_wizard_options } # php_error