def logging_bytes(msg)
     result = ""
     msg.each_byte do |c|
       byte = if c < 16
         '0' + c.to_s(16)
       else
          c.to_s(16)
       end
         result << "[#{byte}]"
      end
      result
    end
def logging_bytes(msg)
     result = ""
     msg.each_byte do |c|
       byte = if c < 16
         '0' + c.to_s(16)
       else
          c.to_s(16)
       end
         result << "[#{byte}]"
      end
      result
    end
Convert string of byte to string for log
 @example
   logging_bytes("\x1\xa\x8") => "[01][0a][08]"
 @param [String] msg input string
 @return [String] readable string of bytes