Go to main content

console_local

Output a string to local error_log.

CONSOLE_LOCAL

NAME

console_local - Output a string to local error_log.

SYNOPSIS

console_local([level : integer], string);

DESCRIPTION

This function output a string to the error_log in the directory logs in /usr/local/website/project/logs/error_logs.

project depend on your project.

The LogLevel can be defined in the apache configuration file with:
LogLevel debug for example

The file have the following definitions:
 

// log level
%define APLOG_EMERG                                     0;     /* system is unusable */
%define APLOG_ALERT                                     1;     /* action must be taken immediately */
%define APLOG_CRIT                                      2;     /* critical conditions */
%define APLOG_ERR                                       3;     /* error conditions */
%define APLOG_WARNING                                   4;     /* warning conditions */
%define APLOG_NOTICE                                    5;     /* normal but significant condition */
%define APLOG_INFO                                      6;     /* informational */
%define APLOG_DEBUG                                     7;     /* debug-level messages */
%define APLOG_TRACE1                                    8;     /* trace-level 1 messages */
%define APLOG_TRACE2                                    9;     /* trace-level 2 messages */
%define APLOG_TRACE3                                    10;     /* trace-level 3 messages */
%define APLOG_TRACE4                                    11;     /* trace-level 4 messages */
%define APLOG_TRACE5                                    12;     /* trace-level 5 messages */
%define APLOG_TRACE6                                    13;     /* trace-level 6 messages */
%define APLOG_TRACE7                                    14;     /* trace-level 7 messages */
%define APLOG_TRACE8                                    15;     /* trace-level 8 messages */

EXAMPLES

Note: In the followings examples, the _ between the { should be removed to make it work. %include "/sncode/include/extenso.sn"; console_local("test");   console_local(level:APLOG_ERR, "test");

SEE ALSO

AUTHOR

Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>

MODIFICATIONS

1.0 2015-02-03 21:24:14 laplante@sednove.com

1.1 2021-08-25 laplante@sednove.com Add level in version 5.158

Edit

© 2024 extenso Inc. All rights reserved.