Show log corresponding to env in admin/logs

No matter which environment Gitlab was running as, the admin/logs view
always showed production.log. This commit selects the logfile based
on Rails.env.

- Rename ProductionLogger to EnvironmentLogger
- Make EnvironmentLogger logfile depend on env
- Update spinach test for log tabs
46 jobs for 23979-show-environment-log in 61 minutes and 40 seconds (queued for 212 minutes and 59 seconds)
latest
Status Job ID Name Coverage
  Prepare
passed #5848459
knapsack

00:01:26

 
  Test
passed #5848512
bundler:check

00:01:49

passed #5848505
license_finder

00:02:00

passed #5848511
lint-doc

00:00:49

failed #5848513
lint-javascript

00:01:30

passed #5848503
rake brakeman

00:03:16

passed #5848508
rake db:migrate:reset

00:06:58

passed #5848509
rake db:seed_fu

00:08:57

passed #5848506
rake downtime_check

00:02:13

failed #5848507
allowed to fail
rake ee_compat_check

00:02:50

passed #5848504
rake flay

00:02:07

passed #5848499
rake haml_lint

00:02:22

passed #5848500
rake scss_lint

00:01:36

passed #5848461
rspec 0 20

00:16:33

passed #5848462
rspec 1 20

00:34:08

passed #5848477
rspec 10 20

00:36:56

passed #5848478
rspec 11 20

00:43:41

passed #5848480
rspec 12 20

00:38:22

passed #5848481
rspec 13 20

00:23:38

passed #5848482
rspec 14 20

00:32:55

passed #5848483
rspec 15 20

00:22:42

passed #5848484
rspec 16 20

00:21:07

passed #5848485
rspec 17 20

00:19:07

passed #5848486
rspec 18 20

00:24:45

passed #5848487
rspec 19 20

00:20:31

passed #5848463
rspec 2 20

00:36:14

passed #5848464
rspec 3 20

00:40:58

passed #5848466
rspec 4 20

00:18:21

passed #5848467
rspec 5 20

00:29:00

passed #5848468
rspec 6 20

00:22:39

passed #5848469
rspec 7 20

00:36:41

passed #5848474
rspec 8 20

00:27:41

passed #5848475
rspec 9 20

00:19:46

passed #5848498
rubocop

00:03:28

passed #5848488
spinach 0 10

00:12:46

passed #5848489
spinach 1 10

00:37:26

passed #5848490
spinach 2 10

00:25:28

passed #5848491
spinach 3 10

00:12:55

passed #5848492
spinach 4 10

00:32:18

passed #5848493
spinach 5 10

00:27:33

passed #5848494
spinach 6 10

00:20:13

passed #5848495
spinach 7 10

00:23:07

passed #5848496
spinach 8 10

00:49:17

passed #5848497
spinach 9 10

00:57:19

passed #5848510
teaspoon

00:10:41

 
  Post Test
skipped #5848514
coverage
 
Name Stage Failure
failed
lint-javascript Test There is an unknown failure, please try again
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /builds/duk3luk3/gitlab-ce/npm-debug.log
ERROR: Build failed: exit code 1
failed
rake ee_compat_check Test There is an unknown failure, please try again
=> Deleting the local 23979-show-environment-log-ee branch

$ git branch -D 23979-show-environment-log-ee
error: branch '23979-show-environment-log-ee' not found.

=> Deleting /builds/duk3luk3/gitlab-ce/lib/tasks/gitlab/ee-compat-check/23979-show-environment-log.patch

=> Deleting /builds/duk3luk3/gitlab-ce/lib/tasks/gitlab/ee-compat-check/23979-show-environment-log-ee.patch
ERROR: Build failed: exit code 1