refactored elektronLogging to logging
This commit is contained in:
parent
bd8ddd1835
commit
3d201bf437
22 changed files with 32 additions and 32 deletions
|
@ -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.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package elektronLogging
|
package logging
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
|
@ -1,4 +1,4 @@
|
||||||
package elektronLogging
|
package logging
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
|
@ -1,4 +1,4 @@
|
||||||
package elektronLogging
|
package logging
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
|
@ -1,4 +1,4 @@
|
||||||
package elektronLogging
|
package logging
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
|
@ -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
|
|
@ -1,4 +1,4 @@
|
||||||
package elektronLogging
|
package logging
|
||||||
|
|
||||||
import (
|
import (
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
|
@ -1,4 +1,4 @@
|
||||||
package elektronLogging
|
package logging
|
||||||
|
|
||||||
import (
|
import (
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
|
@ -1,4 +1,4 @@
|
||||||
package elektronLogging
|
package logging
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
|
@ -1,4 +1,4 @@
|
||||||
package elektronLogging
|
package logging
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
|
@ -1,4 +1,4 @@
|
||||||
package elektronLogging
|
package logging
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
|
@ -1,4 +1,4 @@
|
||||||
package elektronLogging
|
package logging
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
|
@ -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) {
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Reference in a new issue