@@ -290,6 +290,11 @@ public IRubyObject info(final ThreadContext context,
290
290
return context .runtime .newBoolean ( add (INFO , context , msg , block ) );
291
291
}
292
292
293
+ @ JRubyMethod (name = "info" )
294
+ public IRubyObject info (final ThreadContext context , final Block block ) {
295
+ return info (context , context .nil , block );
296
+ }
297
+
293
298
//
294
299
// Log a +WARN+ message.
295
300
//
@@ -299,6 +304,11 @@ public IRubyObject warn(final ThreadContext context,
299
304
return context .runtime .newBoolean ( add (WARN , context , msg , block ) );
300
305
}
301
306
307
+ @ JRubyMethod (name = "warn" )
308
+ public IRubyObject warn (final ThreadContext context , final Block block ) {
309
+ return warn (context , context .nil , block );
310
+ }
311
+
302
312
//
303
313
// Log a +ERROR+ message.
304
314
//
@@ -308,6 +318,11 @@ public IRubyObject error(final ThreadContext context,
308
318
return context .runtime .newBoolean ( add (ERROR , context , msg , block ) );
309
319
}
310
320
321
+ @ JRubyMethod (name = "error" )
322
+ public IRubyObject error (final ThreadContext context , final Block block ) {
323
+ return error (context , context .nil , block );
324
+ }
325
+
311
326
//
312
327
// Log a +FATAL+ message.
313
328
//
@@ -317,6 +332,11 @@ public IRubyObject fatal(final ThreadContext context,
317
332
return context .runtime .newBoolean ( add (FATAL , context , msg , block ) );
318
333
}
319
334
335
+ @ JRubyMethod (name = "fatal" )
336
+ public IRubyObject fatal (final ThreadContext context , final Block block ) {
337
+ return fatal (context , context .nil , block );
338
+ }
339
+
320
340
//
321
341
// Log an +UNKNOWN+ message.
322
342
// This will be printed no matter what the logger's level is.
@@ -328,6 +348,11 @@ public IRubyObject unknown(final ThreadContext context,
328
348
return context .runtime .newBoolean ( add (UNKNOWN , context , msg , block ) );
329
349
}
330
350
351
+ @ JRubyMethod (name = "unknown" )
352
+ public IRubyObject unknown (final ThreadContext context , final Block block ) {
353
+ return unknown (context , context .nil , block );
354
+ }
355
+
331
356
// def add(severity, message = nil, progname = nil, &block)
332
357
@ JRubyMethod (name = "add" , required = 1 , optional = 2 )
333
358
public IRubyObject add (final ThreadContext context ,
0 commit comments