Class: Agoo::RackLogger

Inherits:
Object
  • Object
show all
Defined in:
ext/agoo/rack_logger.c,
ext/agoo/rack_logger.c

Overview

Used in a request as the rack.logger attribute.

Instance Method Summary collapse

Instance Method Details

#debug(message) ⇒ Object

call-seq: debug(message, &block)

Calls the Server#debug method.



50
51
52
53
54
# File 'ext/agoo/rack_logger.c', line 50

static VALUE
rl_debug(VALUE self, VALUE message) {
    log_message(&agoo_debug_cat, message);
    return Qnil;
}

#error(message) ⇒ Object

call-seq: error(message, &block)

Calls the Server#error method.



86
87
88
89
90
# File 'ext/agoo/rack_logger.c', line 86

static VALUE
rl_error(VALUE self, VALUE message) {
    log_message(&agoo_error_cat, message);
    return Qnil;
}

#fatal(message) ⇒ Object

call-seq: fatal(message, &block)

Calls the Server#fatal method.



98
99
100
101
102
103
# File 'ext/agoo/rack_logger.c', line 98

static VALUE
rl_fatal(VALUE self, VALUE message) {
    log_message(&agoo_fatal_cat, message);
    exit(0);
    return Qnil;
}

#info(message) ⇒ Object

call-seq: info(message, &block)

Calls the Server#info method.



62
63
64
65
66
# File 'ext/agoo/rack_logger.c', line 62

static VALUE
rl_info(VALUE self, VALUE message) {
    log_message(&agoo_info_cat, message);
    return Qnil;
}

#warn(message) ⇒ Object

call-seq: warn(message, &block)

Calls the Server#warn method.



74
75
76
77
78
# File 'ext/agoo/rack_logger.c', line 74

static VALUE
rl_warn(VALUE self, VALUE message) {
    log_message(&agoo_warn_cat, message);
    return Qnil;
}