refactored elektronLogging to logging

This commit is contained in:
Pradyumna Kaushik 2019-12-05 17:38:56 -05:00
parent bd8ddd1835
commit 3d201bf437
22 changed files with 32 additions and 32 deletions

View file

@ -26,8 +26,8 @@ import (
"github.com/mash/gokmeans" "github.com/mash/gokmeans"
"github.com/montanaflynn/stats" "github.com/montanaflynn/stats"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
elekLog "github.com/spdfg/elektron/elektronLogging" elekLog "github.com/spdfg/elektron/logging"
elekLogTypes "github.com/spdfg/elektron/elektronLogging/types" elekLogTypes "github.com/spdfg/elektron/logging/types"
) )
// Information about a cluster of tasks. // Information about a cluster of tasks.

View file

@ -1,4 +1,4 @@
package elektronLogging package logging
import ( import (
"bytes" "bytes"

View file

@ -1,4 +1,4 @@
package elektronLogging package logging
import ( import (
"os" "os"

View file

@ -1,4 +1,4 @@
package elektronLogging package logging
import ( import (
"fmt" "fmt"

View file

@ -1,4 +1,4 @@
package elektronLogging package logging
import ( import (
"os" "os"

View file

@ -1,4 +1,4 @@
package elektronLogging package logging
import ( import (
"os" "os"
@ -6,7 +6,7 @@ import (
"time" "time"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
. "github.com/spdfg/elektron/elektronLogging/types" . "github.com/spdfg/elektron/logging/types"
) )
var config LoggerConfig var config LoggerConfig

View file

@ -1,4 +1,4 @@
package elektronLogging package logging
import ( import (
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"

View file

@ -1,4 +1,4 @@
package elektronLogging package logging
import ( import (
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"

View file

@ -1,4 +1,4 @@
package elektronLogging package logging
import ( import (
"os" "os"

View file

@ -1,4 +1,4 @@
package elektronLogging package logging
import ( import (
"os" "os"

View file

@ -1,4 +1,4 @@
package elektronLogging package logging
import ( import (
"os" "os"

View file

@ -1,4 +1,4 @@
package elektronLogging package logging
import ( import (
"os" "os"

View file

@ -25,8 +25,8 @@ import (
"time" "time"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
elekLog "github.com/spdfg/elektron/elektronLogging" elekLog "github.com/spdfg/elektron/logging"
elekLogTypes "github.com/spdfg/elektron/elektronLogging/types" elekLogTypes "github.com/spdfg/elektron/logging/types"
) )
func Start(quit chan struct{}, logging *bool, pcpConfigFile string) { func Start(quit chan struct{}, logging *bool, pcpConfigFile string) {

View file

@ -30,8 +30,8 @@ import (
"time" "time"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
elekLog "github.com/spdfg/elektron/elektronLogging" elekLog "github.com/spdfg/elektron/logging"
elekLogTypes "github.com/spdfg/elektron/elektronLogging/types" elekLogTypes "github.com/spdfg/elektron/logging/types"
"github.com/spdfg/elektron/pcp" "github.com/spdfg/elektron/pcp"
"github.com/spdfg/elektron/rapl" "github.com/spdfg/elektron/rapl"
) )

View file

@ -32,8 +32,8 @@ import (
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/spdfg/elektron/constants" "github.com/spdfg/elektron/constants"
elekLog "github.com/spdfg/elektron/elektronLogging" elekLog "github.com/spdfg/elektron/logging"
elekLogTypes "github.com/spdfg/elektron/elektronLogging/types" elekLogTypes "github.com/spdfg/elektron/logging/types"
"github.com/spdfg/elektron/pcp" "github.com/spdfg/elektron/pcp"
"github.com/spdfg/elektron/rapl" "github.com/spdfg/elektron/rapl"
"github.com/spdfg/elektron/utilities" "github.com/spdfg/elektron/utilities"

View file

@ -31,8 +31,8 @@ import (
sched "github.com/mesos/mesos-go/api/v0/scheduler" sched "github.com/mesos/mesos-go/api/v0/scheduler"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/spdfg/elektron/def" "github.com/spdfg/elektron/def"
elekLog "github.com/spdfg/elektron/elektronLogging" elekLog "github.com/spdfg/elektron/logging"
elekLogTypes "github.com/spdfg/elektron/elektronLogging/types" elekLogTypes "github.com/spdfg/elektron/logging/types"
"github.com/spdfg/elektron/pcp" "github.com/spdfg/elektron/pcp"
"github.com/spdfg/elektron/powerCap" "github.com/spdfg/elektron/powerCap"
"github.com/spdfg/elektron/schedulers" "github.com/spdfg/elektron/schedulers"

View file

@ -30,8 +30,8 @@ import (
sched "github.com/mesos/mesos-go/api/v0/scheduler" sched "github.com/mesos/mesos-go/api/v0/scheduler"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/spdfg/elektron/def" "github.com/spdfg/elektron/def"
elekLog "github.com/spdfg/elektron/elektronLogging" elekLog "github.com/spdfg/elektron/logging"
elekLogTypes "github.com/spdfg/elektron/elektronLogging/types" elekLogTypes "github.com/spdfg/elektron/logging/types"
"github.com/spdfg/elektron/utilities" "github.com/spdfg/elektron/utilities"
"github.com/spdfg/elektron/utilities/schedUtils" "github.com/spdfg/elektron/utilities/schedUtils"
) )

View file

@ -27,8 +27,8 @@ import (
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/spdfg/elektron/constants" "github.com/spdfg/elektron/constants"
"github.com/spdfg/elektron/def" "github.com/spdfg/elektron/def"
elekLog "github.com/spdfg/elektron/elektronLogging" elekLog "github.com/spdfg/elektron/logging"
elekLogTypes "github.com/spdfg/elektron/elektronLogging/types" elekLogTypes "github.com/spdfg/elektron/logging/types"
"github.com/spdfg/elektron/utilities" "github.com/spdfg/elektron/utilities"
"github.com/spdfg/elektron/utilities/mesosUtils" "github.com/spdfg/elektron/utilities/mesosUtils"
) )

View file

@ -26,8 +26,8 @@ import (
sched "github.com/mesos/mesos-go/api/v0/scheduler" sched "github.com/mesos/mesos-go/api/v0/scheduler"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/spdfg/elektron/def" "github.com/spdfg/elektron/def"
elekLog "github.com/spdfg/elektron/elektronLogging" elekLog "github.com/spdfg/elektron/logging"
elekLogTypes "github.com/spdfg/elektron/elektronLogging/types" elekLogTypes "github.com/spdfg/elektron/logging/types"
) )
type SchedPolicyContext interface { type SchedPolicyContext interface {

View file

@ -24,8 +24,8 @@ import (
mesos "github.com/mesos/mesos-go/api/v0/mesosproto" mesos "github.com/mesos/mesos-go/api/v0/mesosproto"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/spdfg/elektron/constants" "github.com/spdfg/elektron/constants"
elekLog "github.com/spdfg/elektron/elektronLogging" elekLog "github.com/spdfg/elektron/logging"
elekLogTypes "github.com/spdfg/elektron/elektronLogging/types" elekLogTypes "github.com/spdfg/elektron/logging/types"
) )
func OfferAgg(offer *mesos.Offer) (float64, float64, float64) { func OfferAgg(offer *mesos.Offer) (float64, float64, float64) {

View file

@ -21,8 +21,8 @@ package schedUtils
import ( import (
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/spdfg/elektron/def" "github.com/spdfg/elektron/def"
elekLog "github.com/spdfg/elektron/elektronLogging" elekLog "github.com/spdfg/elektron/logging"
elekLogTypes "github.com/spdfg/elektron/elektronLogging/types" elekLogTypes "github.com/spdfg/elektron/logging/types"
"github.com/spdfg/elektron/utilities" "github.com/spdfg/elektron/utilities"
) )