Module: Logging

Included in:
MysqlLengthOfStringValidator, PostgresqlLengthOfStringValidator
Defined in:
lib/string_length_conformable/logging.rb

Instance Method Summary collapse

Instance Method Details

#logObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/string_length_conformable/logging.rb', line 4

def log
  text = "    \\n\n    \#{'*' * 100}\n    String is validated by gem string_length_conformable.\n    for more info visit https://github.com/Yaponcik/string_length_conformable\n    \#{'*' * 100}\n  TEXT\n  Logger.new(STDOUT).info text\nend\n"