D 2015-01-05T20:23:07.171 L log N text/x-markdown U mario W 11536
| i | PRIM | The event hierarchy is retained by these three fields. Where `i` is the primary index, `g` the event group, and `p` references the immediate parent event. |
| g | INT | |
| p | INT | |
| timestamp | REAL | Timestamp with microseconds. |
| timestr | TEXT | ISO DateTime string. |
| host | TEXT | Hostname. |
| pri | INT | Priority number (0…7). |
| **prio** | TEXT | Priority string (emerg…info) |
| source | TEXT | log|sys|lang|excpt|assert |
| errno | INT | 0…32767 |
| app | TEXT | AppName.php |
| **section** | TEXT | Application structure / module / part / section. |
| file | TEXT | path/file.php |
| line | INT | 125 |
| version | TEXT | Meta data from source code. |
| **message** | TEXT | Primary log event message string. |
| doc | TEXT | Extra documentation / long message / href. |
| backtrace | JSON | Array of `:backtrace` |
| code | TEXT | Extracted code context (3 lines). |
| vars | JSON | Main $vars[] array. |
| context | JSON | Additional / user-defined fields. |
| Priority levels | ||
|---|---|---|
| :debug | `7` | Low-level debug events. |
| :info | `6` | Process flow infos etc. |
| :notice, :note | `5` | Lowest priority language notices. |
| :warning, :warn | `4` | Warnings. |
| :error, :err | `3` | PHP or system error. |
| :critical, :crit | `2` | This can't be good. |
| :alert, :alrt | `1` | Turn on the bat light. |
| :emergency, :emerg | `0` | Someone call the president. |
| Source / generator | ||
| :log | Application origin, normal/manual log calls. | |
| :sys | System-level events and errno codes. | |
| :lang | Language errors, warnings, notices, etc. | |
| :exception | Langauge/runtime exceptions. | |
| :assert | `Assert()` warnings. | |
| Field names | ||
| Any database column / primary field name can be represented as `:token`. It's pretty much only useful to use :vars however to map the following array parameter. | ||
| Injector calls | ||
| :backtrace | Populates backtrace. | |
| :server | Inserts $_SERVER array into `context`. | |
| :file | Uncovers `file` and `line` from backtrace. | |
| :version | Reads out meta data (file/scm version, and section) from script comments. | |
| :code | Inserts 3 lines of `code` context. | |
| :p | Tries to deduce log event hierarchy from prior calls, sections, and backtraces. (Not yet implemented.) | |