HEX
Server: Apache
System: Linux opal14.opalstack.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User: curbgloabal_opal (1234)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/ri/2.6.0/system/Logger/new-c.ri
U:RDoc::AnyMethod[iI"new:ETI"Logger::new;TT:publico:RDoc::Markup::Document:@parts[S:RDoc::Markup::Heading:
leveli:	textI"	Args;To:RDoc::Markup::BlankLineo:RDoc::Markup::List:
@type:	NOTE:@items[
o:RDoc::Markup::ListItem:@label[I"
+logdev+;T;	[o:RDoc::Markup::Paragraph;	[I"JThe log device.  This is a filename (String) or IO object (typically ;TI"*+STDOUT+, +STDERR+, or an open file).;To;;[I"+shift_age+;T;	[o;;	[I"KNumber of old log files to keep, *or* frequency of rotation (+daily+, ;TI"0+weekly+ or +monthly+). Default value is 0.;To;;[I"+shift_size+;T;	[o;;	[I"PMaximum logfile size in bytes (only applies when +shift_age+ is a number). ;TI"!Defaults to +1048576+ (1MB).;To;;[I"+level+;T;	[o;;	[I"ALogging severity threshold. Default values is Logger::DEBUG.;To;;[I"+progname+;T;	[o;;	[I"CProgram name to include in log messages. Default value is nil.;To;;[I"+formatter+;T;	[o;;	[I"KLogging formatter. Default values is an instance of Logger::Formatter.;To;;[I"+datetime_format+;T;	[o;;	[I"@Date and time format. Default value is '%Y-%m-%d %H:%M:%S'.;To;;[I"+shift_period_suffix+;T;	[o;;	[I"MThe log file suffix format for +daily+, +weekly+ or +monthly+ rotation. ;TI"Default is '%Y%m%d'.;T@
S;
;i;I"Description;T@
o;;	[I"Create an instance.;T:
@fileI"lib/logger.rb;T:0@omit_headings_from_table_of_contents_below0I"
Logger.new(logdev, shift_age = 0, shift_size = 1048576)
Logger.new(logdev, shift_age = 'weekly')
Logger.new(logdev, level: :info)
Logger.new(logdev, progname: 'progname')
Logger.new(logdev, formatter: formatter)
Logger.new(logdev, datetime_format: '%Y-%m-%d %H:%M:%S')
;T0[I"�(logdev, shift_age = 0, shift_size = 1048576, level: DEBUG, progname: nil, formatter: nil, datetime_format: nil, shift_period_suffix: '%Y%m%d');T@QFI"Logger;TcRDoc::NormalClass00