{"payload":{"allShortcutsEnabled":false,"fileTree":{"bees":{"items":[{"name":"alertoverbee","path":"bees/alertoverbee","contentType":"directory"},{"name":"anelpowerctrlbee","path":"bees/anelpowerctrlbee","contentType":"directory"},{"name":"cfddnsbee","path":"bees/cfddnsbee","contentType":"directory"},{"name":"cleverbotbee","path":"bees/cleverbotbee","contentType":"directory"},{"name":"cricketbee","path":"bees/cricketbee","contentType":"directory"},{"name":"cronbee","path":"bees/cronbee","contentType":"directory"},{"name":"devrantbee","path":"bees/devrantbee","contentType":"directory"},{"name":"discordbee","path":"bees/discordbee","contentType":"directory"},{"name":"efabee","path":"bees/efabee","contentType":"directory"},{"name":"emailbee","path":"bees/emailbee","contentType":"directory"},{"name":"emailserverbee","path":"bees/emailserverbee","contentType":"directory"},{"name":"execbee","path":"bees/execbee","contentType":"directory"},{"name":"facebookbee","path":"bees/facebookbee","contentType":"directory"},{"name":"fsnotifybee","path":"bees/fsnotifybee","contentType":"directory"},{"name":"githubbee","path":"bees/githubbee","contentType":"directory"},{"name":"gitterbee","path":"bees/gitterbee","contentType":"directory"},{"name":"hellobee","path":"bees/hellobee","contentType":"directory"},{"name":"horizonboxbee","path":"bees/horizonboxbee","contentType":"directory"},{"name":"htmlextractbee","path":"bees/htmlextractbee","contentType":"directory"},{"name":"httpbee","path":"bees/httpbee","contentType":"directory"},{"name":"huebee","path":"bees/huebee","contentType":"directory"},{"name":"instapaperbee","path":"bees/instapaperbee","contentType":"directory"},{"name":"ipifybee","path":"bees/ipifybee","contentType":"directory"},{"name":"ircbee","path":"bees/ircbee","contentType":"directory"},{"name":"jabberbee","path":"bees/jabberbee","contentType":"directory"},{"name":"jenkinsbee","path":"bees/jenkinsbee","contentType":"directory"},{"name":"mastodonbee","path":"bees/mastodonbee","contentType":"directory"},{"name":"mixcloudbee","path":"bees/mixcloudbee","contentType":"directory"},{"name":"mumblebee","path":"bees/mumblebee","contentType":"directory"},{"name":"nagiosbee","path":"bees/nagiosbee","contentType":"directory"},{"name":"notificationbee","path":"bees/notificationbee","contentType":"directory"},{"name":"openweathermapbee","path":"bees/openweathermapbee","contentType":"directory"},{"name":"pastebinbee","path":"bees/pastebinbee","contentType":"directory"},{"name":"prometheusbee","path":"bees/prometheusbee","contentType":"directory"},{"name":"pushoverbee","path":"bees/pushoverbee","contentType":"directory"},{"name":"rocketchatbee","path":"bees/rocketchatbee","contentType":"directory"},{"name":"rssbee","path":"bees/rssbee","contentType":"directory"},{"name":"s3bee","path":"bees/s3bee","contentType":"directory"},{"name":"serialbee","path":"bees/serialbee","contentType":"directory"},{"name":"simplepushbee","path":"bees/simplepushbee","contentType":"directory"},{"name":"slackbee","path":"bees/slackbee","contentType":"directory"},{"name":"socketbee","path":"bees/socketbee","contentType":"directory"},{"name":"spaceapibee","path":"bees/spaceapibee","contentType":"directory"},{"name":"telegrambee","path":"bees/telegrambee","contentType":"directory"},{"name":"timebee","path":"bees/timebee","contentType":"directory"},{"name":"transmissionbee","path":"bees/transmissionbee","contentType":"directory"},{"name":"travisbee","path":"bees/travisbee","contentType":"directory"},{"name":"tumblrbee","path":"bees/tumblrbee","contentType":"directory"},{"name":"twiliobee","path":"bees/twiliobee","contentType":"directory"},{"name":"twitchbee","path":"bees/twitchbee","contentType":"directory"},{"name":"twitterbee","path":"bees/twitterbee","contentType":"directory"},{"name":"webbee","path":"bees/webbee","contentType":"directory"},{"name":"actions.go","path":"bees/actions.go","contentType":"file"},{"name":"bees.go","path":"bees/bees.go","contentType":"file"},{"name":"chains.go","path":"bees/chains.go","contentType":"file"},{"name":"config.go","path":"bees/config.go","contentType":"file"},{"name":"context.go","path":"bees/context.go","contentType":"file"},{"name":"descriptors.go","path":"bees/descriptors.go","contentType":"file"},{"name":"events.go","path":"bees/events.go","contentType":"file"},{"name":"factories.go","path":"bees/factories.go","contentType":"file"},{"name":"filters.go","path":"bees/filters.go","contentType":"file"},{"name":"logs.go","path":"bees/logs.go","contentType":"file"},{"name":"options.go","path":"bees/options.go","contentType":"file"},{"name":"placeholders.go","path":"bees/placeholders.go","contentType":"file"}],"totalCount":64},"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":"admin","path":"admin","contentType":"directory"},{"name":"api","path":"api","contentType":"directory"},{"name":"app","path":"app","contentType":"directory"},{"name":"assets","path":"assets","contentType":"directory"},{"name":"bees","path":"bees","contentType":"directory"},{"name":"cfg","path":"cfg","contentType":"directory"},{"name":"config","path":"config","contentType":"submodule","submoduleUrl":"/muesli/beehive-admin-dist/tree/648f36d9834df3e2bac54009303e82ac272b68ca","submoduleDisplayName":"config @ 648f36d"},{"name":"docker","path":"docker","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"filters","path":"filters","contentType":"directory"},{"name":"templatehelper","path":"templatehelper","contentType":"directory"},{"name":"tools","path":"tools","contentType":"directory"},{"name":".appveyor.yml","path":".appveyor.yml","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".gitmodules","path":".gitmodules","contentType":"file"},{"name":".goreleaser.yml","path":".goreleaser.yml","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"Dockerfile","path":"Dockerfile","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"beehive.go","path":"beehive.go","contentType":"file"},{"name":"build-constants.go","path":"build-constants.go","contentType":"file"},{"name":"go.mod","path":"go.mod","contentType":"file"},{"name":"go.sum","path":"go.sum","contentType":"file"},{"name":"hives.go","path":"hives.go","contentType":"file"},{"name":"hives_linux.go","path":"hives_linux.go","contentType":"file"},{"name":"hives_osx.go","path":"hives_osx.go","contentType":"file"},{"name":"hives_unix.go","path":"hives_unix.go","contentType":"file"},{"name":"watchdog_linux.go","path":"watchdog_linux.go","contentType":"file"}],"totalCount":31}},"fileTreeProcessingTime":21.681843999999998,"foldersToFetch":[],"repo":{"id":21141781,"defaultBranch":"master","name":"beehive","ownerLogin":"muesli","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2014-06-23T20:46:31.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/146378?v=4","public":true,"private":false,"isOrgOwned":false},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"v0.4.0","listCacheKey":"v0:1677290061.8502421","canEdit":false,"refType":"tag","currentOid":"7447df7b8c0345cfa7522b90c4bc6814950affc4"},"path":"bees/logs.go","currentUser":null,"blob":{"rawLines":["/*"," * Copyright (C) 2017 Christian Muehlhaeuser"," *"," * This program is free software: you can redistribute it and/or modify"," * it under the terms of the GNU Affero General Public License as published"," * by the Free Software Foundation, either version 3 of the License, or"," * (at your option) any later version."," *"," * This program is distributed in the hope that it will be useful,"," * but WITHOUT ANY WARRANTY; without even the implied warranty of"," * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the"," * GNU Affero General Public License for more details."," *"," * You should have received a copy of the GNU Affero General Public License"," * along with this program. If not, see ."," *"," * Authors:"," * Christian Muehlhaeuser "," */","","// Package bees is Beehive's central module system.","package bees","","import (","\t\"sort\"","\t\"sync\"","\t\"time\"",")","","// LogMessage stores a log message with its timestamp, type and originating Bee","type LogMessage struct {","\tID string","\tBee string","\tMessage string","\tMessageType uint","\tTimestamp time.Time","}","","var (","\tlogs = make(map[string][]LogMessage)","\tlogMutex sync.RWMutex",")","","// MessageType defines the log level of the log entry we're dealing with","type MessageType uint","","const (","\t// LogInfo is for info-level log entries","\tLogInfo MessageType = iota","","\t// LogError is for error-level log entries","\tLogError MessageType = iota","","\t// LogFatal is for fatal-level log entries","\tLogFatal MessageType = iota","","\t// LogDebug is for debug-level log entries","\tLogDebug MessageType = iota",")","","// LogSorter is used for sorting an array of LogMessages by their timestamp","type LogSorter []LogMessage","","func (a LogSorter) Len() int { return len(a) }","func (a LogSorter) Swap(i, j int) { a[i], a[j] = a[j], a[i] }","func (a LogSorter) Less(i, j int) bool { return !a[i].Timestamp.Before(a[j].Timestamp) }","","// NewLogMessage returns a newly composed LogMessage","func NewLogMessage(bee string, message string, messageType MessageType) LogMessage {","\treturn LogMessage{","\t\tID: UUID(),","\t\tBee: bee,","\t\tMessage: message,","\t\tMessageType: uint(messageType),","\t\tTimestamp: time.Now(),","\t}","}","","// Log adds a new LogMessage to the log","func Log(bee string, message string, messageType MessageType) {","\tlogMutex.Lock()","\tdefer logMutex.Unlock()","","\tlogs[bee] = append(logs[bee], NewLogMessage(bee, message, messageType))","}","","// GetLogs returns all logs for a Bee.","func GetLogs(bee string) []LogMessage {","\tr := []LogMessage{}","","\tlogMutex.RLock()","\tfor b, ls := range logs {","\t\tif len(bee) == 0 || bee == b {","\t\t\tfor _, l := range ls {","\t\t\t\tr = append(r, l)","\t\t\t}","\t\t}","\t}","\tlogMutex.RUnlock()","","\tsort.Sort(LogSorter(r))","\treturn r","}"],"stylingDirectives":[[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":47,"cssClass":"pl-c"}],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":74,"cssClass":"pl-c"}],[{"start":0,"end":78,"cssClass":"pl-c"}],[{"start":0,"end":74,"cssClass":"pl-c"}],[{"start":0,"end":41,"cssClass":"pl-c"}],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":69,"cssClass":"pl-c"}],[{"start":0,"end":68,"cssClass":"pl-c"}],[{"start":0,"end":67,"cssClass":"pl-c"}],[{"start":0,"end":57,"cssClass":"pl-c"}],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":78,"cssClass":"pl-c"}],[{"start":0,"end":75,"cssClass":"pl-c"}],[{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":14,"cssClass":"pl-c"}],[{"start":0,"end":49,"cssClass":"pl-c"}],[{"start":0,"end":3,"cssClass":"pl-c"}],[],[{"start":0,"end":51,"cssClass":"pl-c"}],[{"start":0,"end":7,"cssClass":"pl-k"}],[],[{"start":0,"end":6,"cssClass":"pl-k"}],[{"start":1,"end":7,"cssClass":"pl-s"}],[{"start":1,"end":7,"cssClass":"pl-s"}],[{"start":1,"end":7,"cssClass":"pl-s"}],[],[],[{"start":0,"end":79,"cssClass":"pl-c"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":15,"cssClass":"pl-smi"},{"start":16,"end":22,"cssClass":"pl-k"}],[{"start":1,"end":3,"cssClass":"pl-c1"},{"start":13,"end":19,"cssClass":"pl-smi"}],[{"start":1,"end":4,"cssClass":"pl-c1"},{"start":13,"end":19,"cssClass":"pl-smi"}],[{"start":1,"end":8,"cssClass":"pl-c1"},{"start":13,"end":19,"cssClass":"pl-smi"}],[{"start":1,"end":12,"cssClass":"pl-c1"},{"start":13,"end":17,"cssClass":"pl-smi"}],[{"start":1,"end":10,"cssClass":"pl-c1"},{"start":18,"end":22,"cssClass":"pl-smi"}],[],[],[{"start":0,"end":3,"cssClass":"pl-k"}],[{"start":1,"end":5,"cssClass":"pl-s1"},{"start":10,"end":11,"cssClass":"pl-c1"},{"start":12,"end":16,"cssClass":"pl-en"},{"start":17,"end":20,"cssClass":"pl-k"},{"start":21,"end":27,"cssClass":"pl-smi"},{"start":30,"end":40,"cssClass":"pl-smi"}],[{"start":1,"end":9,"cssClass":"pl-s1"},{"start":15,"end":22,"cssClass":"pl-smi"}],[],[],[{"start":0,"end":72,"cssClass":"pl-c"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":16,"cssClass":"pl-smi"},{"start":17,"end":21,"cssClass":"pl-smi"}],[],[{"start":0,"end":5,"cssClass":"pl-k"}],[{"start":1,"end":41,"cssClass":"pl-c"}],[{"start":1,"end":8,"cssClass":"pl-s1"},{"start":9,"end":20,"cssClass":"pl-smi"},{"start":21,"end":22,"cssClass":"pl-c1"},{"start":23,"end":27,"cssClass":"pl-s1"}],[],[{"start":1,"end":43,"cssClass":"pl-c"}],[{"start":1,"end":9,"cssClass":"pl-s1"},{"start":10,"end":21,"cssClass":"pl-smi"},{"start":22,"end":23,"cssClass":"pl-c1"},{"start":24,"end":28,"cssClass":"pl-s1"}],[],[{"start":1,"end":43,"cssClass":"pl-c"}],[{"start":1,"end":9,"cssClass":"pl-s1"},{"start":10,"end":21,"cssClass":"pl-smi"},{"start":22,"end":23,"cssClass":"pl-c1"},{"start":24,"end":28,"cssClass":"pl-s1"}],[],[{"start":1,"end":43,"cssClass":"pl-c"}],[{"start":1,"end":9,"cssClass":"pl-s1"},{"start":10,"end":21,"cssClass":"pl-smi"},{"start":22,"end":23,"cssClass":"pl-c1"},{"start":24,"end":28,"cssClass":"pl-s1"}],[],[],[{"start":0,"end":75,"cssClass":"pl-c"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":14,"cssClass":"pl-smi"},{"start":17,"end":27,"cssClass":"pl-smi"}],[],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":6,"end":7,"cssClass":"pl-s1"},{"start":8,"end":17,"cssClass":"pl-smi"},{"start":19,"end":22,"cssClass":"pl-en"},{"start":25,"end":28,"cssClass":"pl-smi"},{"start":41,"end":47,"cssClass":"pl-k"},{"start":48,"end":51,"cssClass":"pl-en"},{"start":52,"end":53,"cssClass":"pl-s1"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":6,"end":7,"cssClass":"pl-s1"},{"start":8,"end":17,"cssClass":"pl-smi"},{"start":19,"end":23,"cssClass":"pl-en"},{"start":24,"end":25,"cssClass":"pl-s1"},{"start":27,"end":28,"cssClass":"pl-s1"},{"start":29,"end":32,"cssClass":"pl-smi"},{"start":41,"end":42,"cssClass":"pl-s1"},{"start":43,"end":44,"cssClass":"pl-s1"},{"start":47,"end":48,"cssClass":"pl-s1"},{"start":49,"end":50,"cssClass":"pl-s1"},{"start":52,"end":53,"cssClass":"pl-c1"},{"start":54,"end":55,"cssClass":"pl-s1"},{"start":56,"end":57,"cssClass":"pl-s1"},{"start":60,"end":61,"cssClass":"pl-s1"},{"start":62,"end":63,"cssClass":"pl-s1"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":6,"end":7,"cssClass":"pl-s1"},{"start":8,"end":17,"cssClass":"pl-smi"},{"start":19,"end":23,"cssClass":"pl-en"},{"start":24,"end":25,"cssClass":"pl-s1"},{"start":27,"end":28,"cssClass":"pl-s1"},{"start":29,"end":32,"cssClass":"pl-smi"},{"start":34,"end":38,"cssClass":"pl-smi"},{"start":41,"end":47,"cssClass":"pl-k"},{"start":48,"end":49,"cssClass":"pl-c1"},{"start":49,"end":50,"cssClass":"pl-s1"},{"start":51,"end":52,"cssClass":"pl-s1"},{"start":54,"end":63,"cssClass":"pl-c1"},{"start":64,"end":70,"cssClass":"pl-en"},{"start":71,"end":72,"cssClass":"pl-s1"},{"start":73,"end":74,"cssClass":"pl-s1"},{"start":76,"end":85,"cssClass":"pl-c1"}],[],[{"start":0,"end":52,"cssClass":"pl-c"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":18,"cssClass":"pl-en"},{"start":19,"end":22,"cssClass":"pl-s1"},{"start":23,"end":29,"cssClass":"pl-smi"},{"start":31,"end":38,"cssClass":"pl-s1"},{"start":39,"end":45,"cssClass":"pl-smi"},{"start":47,"end":58,"cssClass":"pl-s1"},{"start":59,"end":70,"cssClass":"pl-smi"},{"start":72,"end":82,"cssClass":"pl-smi"}],[{"start":1,"end":7,"cssClass":"pl-k"},{"start":8,"end":18,"cssClass":"pl-smi"}],[{"start":2,"end":4,"cssClass":"pl-c1"},{"start":15,"end":19,"cssClass":"pl-en"}],[{"start":2,"end":5,"cssClass":"pl-c1"},{"start":15,"end":18,"cssClass":"pl-s1"}],[{"start":2,"end":9,"cssClass":"pl-c1"},{"start":15,"end":22,"cssClass":"pl-s1"}],[{"start":2,"end":13,"cssClass":"pl-c1"},{"start":15,"end":19,"cssClass":"pl-en"},{"start":20,"end":31,"cssClass":"pl-s1"}],[{"start":2,"end":11,"cssClass":"pl-c1"},{"start":15,"end":19,"cssClass":"pl-s1"},{"start":20,"end":23,"cssClass":"pl-en"}],[],[],[],[{"start":0,"end":39,"cssClass":"pl-c"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":8,"cssClass":"pl-en"},{"start":9,"end":12,"cssClass":"pl-s1"},{"start":13,"end":19,"cssClass":"pl-smi"},{"start":21,"end":28,"cssClass":"pl-s1"},{"start":29,"end":35,"cssClass":"pl-smi"},{"start":37,"end":48,"cssClass":"pl-s1"},{"start":49,"end":60,"cssClass":"pl-smi"}],[{"start":1,"end":9,"cssClass":"pl-s1"},{"start":10,"end":14,"cssClass":"pl-en"}],[{"start":1,"end":6,"cssClass":"pl-k"},{"start":7,"end":15,"cssClass":"pl-s1"},{"start":16,"end":22,"cssClass":"pl-en"}],[],[{"start":1,"end":5,"cssClass":"pl-s1"},{"start":6,"end":9,"cssClass":"pl-s1"},{"start":11,"end":12,"cssClass":"pl-c1"},{"start":13,"end":19,"cssClass":"pl-en"},{"start":20,"end":24,"cssClass":"pl-s1"},{"start":25,"end":28,"cssClass":"pl-s1"},{"start":31,"end":44,"cssClass":"pl-en"},{"start":45,"end":48,"cssClass":"pl-s1"},{"start":50,"end":57,"cssClass":"pl-s1"},{"start":59,"end":70,"cssClass":"pl-s1"}],[],[],[{"start":0,"end":38,"cssClass":"pl-c"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":12,"cssClass":"pl-en"},{"start":13,"end":16,"cssClass":"pl-s1"},{"start":17,"end":23,"cssClass":"pl-smi"},{"start":27,"end":37,"cssClass":"pl-smi"}],[{"start":1,"end":2,"cssClass":"pl-s1"},{"start":3,"end":5,"cssClass":"pl-c1"},{"start":8,"end":18,"cssClass":"pl-smi"}],[],[{"start":1,"end":9,"cssClass":"pl-s1"},{"start":10,"end":15,"cssClass":"pl-en"}],[{"start":1,"end":4,"cssClass":"pl-k"},{"start":5,"end":6,"cssClass":"pl-s1"},{"start":8,"end":10,"cssClass":"pl-s1"},{"start":11,"end":13,"cssClass":"pl-c1"},{"start":14,"end":19,"cssClass":"pl-k"},{"start":20,"end":24,"cssClass":"pl-s1"}],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":5,"end":8,"cssClass":"pl-en"},{"start":9,"end":12,"cssClass":"pl-s1"},{"start":14,"end":16,"cssClass":"pl-c1"},{"start":17,"end":18,"cssClass":"pl-c1"},{"start":19,"end":21,"cssClass":"pl-c1"},{"start":22,"end":25,"cssClass":"pl-s1"},{"start":26,"end":28,"cssClass":"pl-c1"},{"start":29,"end":30,"cssClass":"pl-s1"}],[{"start":3,"end":6,"cssClass":"pl-k"},{"start":7,"end":8,"cssClass":"pl-s1"},{"start":10,"end":11,"cssClass":"pl-s1"},{"start":12,"end":14,"cssClass":"pl-c1"},{"start":15,"end":20,"cssClass":"pl-k"},{"start":21,"end":23,"cssClass":"pl-s1"}],[{"start":4,"end":5,"cssClass":"pl-s1"},{"start":6,"end":7,"cssClass":"pl-c1"},{"start":8,"end":14,"cssClass":"pl-en"},{"start":15,"end":16,"cssClass":"pl-s1"},{"start":18,"end":19,"cssClass":"pl-s1"}],[],[],[],[{"start":1,"end":9,"cssClass":"pl-s1"},{"start":10,"end":17,"cssClass":"pl-en"}],[],[{"start":1,"end":5,"cssClass":"pl-s1"},{"start":6,"end":10,"cssClass":"pl-en"},{"start":11,"end":20,"cssClass":"pl-en"},{"start":21,"end":22,"cssClass":"pl-s1"}],[{"start":1,"end":7,"cssClass":"pl-k"},{"start":8,"end":9,"cssClass":"pl-s1"}],[]],"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/muesli/beehive/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"logs.go","displayUrl":"https://github.com/muesli/beehive/blob/v0.4.0/bees/logs.go?raw=true","headerInfo":{"blobSize":"2.67 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":null,"isGitLfs":false,"onBranch":false,"shortPath":"b7fce1b","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fmuesli%2Fbeehive%2Fblob%2Fv0.4.0%2Fbees%2Flogs.go","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"103","truncatedSloc":"86"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Go","languageID":132,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/muesli/beehive/blob/v0.4.0/bees/logs.go","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/muesli/beehive/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/muesli/beehive/raw/v0.4.0/bees/logs.go","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"LogMessage","kind":"class","ident_start":1011,"ident_end":1021,"extent_start":1006,"extent_end":1133,"fully_qualified_name":"LogMessage","ident_utf16":{"start":{"line_number":30,"utf16_col":5},"end":{"line_number":30,"utf16_col":15}},"extent_utf16":{"start":{"line_number":30,"utf16_col":0},"end":{"line_number":36,"utf16_col":1}}},{"name":"ID","kind":"field","ident_start":1032,"ident_end":1034,"extent_start":1032,"extent_end":1050,"fully_qualified_name":"LogMessage.ID","ident_utf16":{"start":{"line_number":31,"utf16_col":1},"end":{"line_number":31,"utf16_col":3}},"extent_utf16":{"start":{"line_number":31,"utf16_col":1},"end":{"line_number":31,"utf16_col":19}}},{"name":"Bee","kind":"field","ident_start":1052,"ident_end":1055,"extent_start":1052,"extent_end":1070,"fully_qualified_name":"LogMessage.Bee","ident_utf16":{"start":{"line_number":32,"utf16_col":1},"end":{"line_number":32,"utf16_col":4}},"extent_utf16":{"start":{"line_number":32,"utf16_col":1},"end":{"line_number":32,"utf16_col":19}}},{"name":"Message","kind":"field","ident_start":1072,"ident_end":1079,"extent_start":1072,"extent_end":1090,"fully_qualified_name":"LogMessage.Message","ident_utf16":{"start":{"line_number":33,"utf16_col":1},"end":{"line_number":33,"utf16_col":8}},"extent_utf16":{"start":{"line_number":33,"utf16_col":1},"end":{"line_number":33,"utf16_col":19}}},{"name":"MessageType","kind":"field","ident_start":1092,"ident_end":1103,"extent_start":1092,"extent_end":1108,"fully_qualified_name":"LogMessage.MessageType","ident_utf16":{"start":{"line_number":34,"utf16_col":1},"end":{"line_number":34,"utf16_col":12}},"extent_utf16":{"start":{"line_number":34,"utf16_col":1},"end":{"line_number":34,"utf16_col":17}}},{"name":"Timestamp","kind":"field","ident_start":1110,"ident_end":1119,"extent_start":1110,"extent_end":1131,"fully_qualified_name":"LogMessage.Timestamp","ident_utf16":{"start":{"line_number":35,"utf16_col":1},"end":{"line_number":35,"utf16_col":10}},"extent_utf16":{"start":{"line_number":35,"utf16_col":1},"end":{"line_number":35,"utf16_col":22}}},{"name":"MessageType","kind":"type","ident_start":1287,"ident_end":1298,"extent_start":1282,"extent_end":1303,"fully_qualified_name":"MessageType","ident_utf16":{"start":{"line_number":44,"utf16_col":5},"end":{"line_number":44,"utf16_col":16}},"extent_utf16":{"start":{"line_number":44,"utf16_col":0},"end":{"line_number":44,"utf16_col":21}}},{"name":"LogInfo","kind":"constant","ident_start":1356,"ident_end":1363,"extent_start":1378,"extent_end":1382,"fully_qualified_name":"LogInfo","ident_utf16":{"start":{"line_number":48,"utf16_col":1},"end":{"line_number":48,"utf16_col":8}},"extent_utf16":{"start":{"line_number":48,"utf16_col":23},"end":{"line_number":48,"utf16_col":27}}},{"name":"LogError","kind":"constant","ident_start":1429,"ident_end":1437,"extent_start":1452,"extent_end":1456,"fully_qualified_name":"LogError","ident_utf16":{"start":{"line_number":51,"utf16_col":1},"end":{"line_number":51,"utf16_col":9}},"extent_utf16":{"start":{"line_number":51,"utf16_col":24},"end":{"line_number":51,"utf16_col":28}}},{"name":"LogFatal","kind":"constant","ident_start":1503,"ident_end":1511,"extent_start":1526,"extent_end":1530,"fully_qualified_name":"LogFatal","ident_utf16":{"start":{"line_number":54,"utf16_col":1},"end":{"line_number":54,"utf16_col":9}},"extent_utf16":{"start":{"line_number":54,"utf16_col":24},"end":{"line_number":54,"utf16_col":28}}},{"name":"LogDebug","kind":"constant","ident_start":1577,"ident_end":1585,"extent_start":1600,"extent_end":1604,"fully_qualified_name":"LogDebug","ident_utf16":{"start":{"line_number":57,"utf16_col":1},"end":{"line_number":57,"utf16_col":9}},"extent_utf16":{"start":{"line_number":57,"utf16_col":24},"end":{"line_number":57,"utf16_col":28}}},{"name":"LogSorter","kind":"type","ident_start":1689,"ident_end":1698,"extent_start":1684,"extent_end":1711,"fully_qualified_name":"LogSorter","ident_utf16":{"start":{"line_number":61,"utf16_col":5},"end":{"line_number":61,"utf16_col":14}},"extent_utf16":{"start":{"line_number":61,"utf16_col":0},"end":{"line_number":61,"utf16_col":27}}},{"name":"Len","kind":"method","ident_start":1732,"ident_end":1735,"extent_start":1713,"extent_end":1769,"fully_qualified_name":"LogSorter.Len","ident_utf16":{"start":{"line_number":63,"utf16_col":19},"end":{"line_number":63,"utf16_col":22}},"extent_utf16":{"start":{"line_number":63,"utf16_col":0},"end":{"line_number":63,"utf16_col":56}}},{"name":"Swap","kind":"method","ident_start":1789,"ident_end":1793,"extent_start":1770,"extent_end":1836,"fully_qualified_name":"LogSorter.Swap","ident_utf16":{"start":{"line_number":64,"utf16_col":19},"end":{"line_number":64,"utf16_col":23}},"extent_utf16":{"start":{"line_number":64,"utf16_col":0},"end":{"line_number":64,"utf16_col":66}}},{"name":"Less","kind":"method","ident_start":1856,"ident_end":1860,"extent_start":1837,"extent_end":1925,"fully_qualified_name":"LogSorter.Less","ident_utf16":{"start":{"line_number":65,"utf16_col":19},"end":{"line_number":65,"utf16_col":23}},"extent_utf16":{"start":{"line_number":65,"utf16_col":0},"end":{"line_number":65,"utf16_col":88}}},{"name":"NewLogMessage","kind":"function","ident_start":1985,"ident_end":1998,"extent_start":1980,"extent_end":2217,"fully_qualified_name":"NewLogMessage","ident_utf16":{"start":{"line_number":68,"utf16_col":5},"end":{"line_number":68,"utf16_col":18}},"extent_utf16":{"start":{"line_number":68,"utf16_col":0},"end":{"line_number":76,"utf16_col":1}}},{"name":"Log","kind":"function","ident_start":2264,"ident_end":2267,"extent_start":2259,"extent_end":2440,"fully_qualified_name":"Log","ident_utf16":{"start":{"line_number":79,"utf16_col":5},"end":{"line_number":79,"utf16_col":8}},"extent_utf16":{"start":{"line_number":79,"utf16_col":0},"end":{"line_number":84,"utf16_col":1}}},{"name":"GetLogs","kind":"function","ident_start":2486,"ident_end":2493,"extent_start":2481,"extent_end":2737,"fully_qualified_name":"GetLogs","ident_utf16":{"start":{"line_number":87,"utf16_col":5},"end":{"line_number":87,"utf16_col":12}},"extent_utf16":{"start":{"line_number":87,"utf16_col":0},"end":{"line_number":102,"utf16_col":1}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"csrf_tokens":{"/muesli/beehive/branches":{"post":"Fhe0yL9icNn7P4k4wswXU912dHkRlLJXYO_ZCHFFjgEwsrNvdQUBnux02qB8s1aQ4XBVsk0kjL3nLCKqG3RRgQ"},"/repos/preferences":{"post":"Hirsr_4egiN-vpvq_-W3QgphseJ3tgIsfczu9i_Q3GdUhhkF30HOEm9F0x5qdGlSpjtnAIJCq28mObU7jRwmcw"}}},"title":"beehive/bees/logs.go at v0.4.0 ยท muesli/beehive"}