Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for syslog (0.11 sec)

  1. src/log/syslog/syslog.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !windows && !plan9
    
    package syslog
    
    import (
    	"errors"
    	"fmt"
    	"log"
    	"net"
    	"os"
    	"strings"
    	"sync"
    	"time"
    )
    
    // The Priority is a combination of the syslog facility and
    // severity. For example, [LOG_ALERT] | [LOG_FTP] sends an alert severity
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 22:56:07 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  2. src/log/syslog/syslog_test.go

    		t.Fatalf("LOG_LOCAL7 has wrong value")
    	}
    	if testing.Short() {
    		// Depends on syslog daemon running, and sometimes it's not.
    		t.Skip("skipping syslog test during -short")
    	}
    
    	s, err := New(LOG_INFO|LOG_USER, "the_tag")
    	if err != nil {
    		if err.Error() == "Unix syslog delivery error" {
    			t.Skip("skipping: syslogd not running")
    		}
    		t.Fatalf("New() failed: %s", err)
    	}
    	// Don't send any messages.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 12 16:09:24 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  3. src/log/syslog/example_test.go

    //go:build !windows && !plan9
    
    package syslog_test
    
    import (
    	"fmt"
    	"log"
    	"log/syslog"
    )
    
    func ExampleDial() {
    	sysLog, err := syslog.Dial("tcp", "localhost:1234",
    		syslog.LOG_WARNING|syslog.LOG_DAEMON, "demotag")
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Fprintf(sysLog, "This is a daemon warning with demotag.")
    	sysLog.Emerg("And this is a daemon emergency with demotag.")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 541 bytes
    - Viewed (0)
  4. src/log/syslog/doc.go

    // license that can be found in the LICENSE file.
    
    // Package syslog provides a simple interface to the system log
    // service. It can send messages to the syslog daemon using UNIX
    // domain sockets, UDP or TCP.
    //
    // Only one call to Dial is necessary. On write failures,
    // the syslog client will attempt to reconnect to the server
    // and write again.
    //
    // The syslog package is frozen and is not accepting new features.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 935 bytes
    - Viewed (0)
  5. src/log/syslog/syslog_unix.go

    //go:build !windows && !plan9
    
    package syslog
    
    import (
    	"errors"
    	"net"
    )
    
    // unixSyslog opens a connection to the syslog daemon running on the
    // local machine using a Unix domain socket.
    
    func unixSyslog() (conn serverConn, err error) {
    	logTypes := []string{"unixgram", "unix"}
    	logPaths := []string{"/dev/log", "/var/run/syslog", "/var/run/log"}
    	for _, network := range logTypes {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 758 bytes
    - Viewed (0)
  6. test/stress/parsego.go

    	"html",
    	"html/template",
    	"image",
    	"image/color",
    	"image/draw",
    	"image/gif",
    	"image/jpeg",
    	"image/png",
    	"index",
    	"index/suffixarray",
    	"io",
    	"io/ioutil",
    	"log",
    	"log/syslog",
    	"math",
    	"math/big",
    	"math/cmplx",
    	"math/rand",
    	"mime",
    	"mime/multipart",
    	"net",
    	"net/http",
    	"net/http/cgi",
    	"net/http/cookiejar",
    	"net/http/fcgi",
    	"net/http/httptest",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 4.1K bytes
    - Viewed (0)
  7. src/go/internal/gccgoimporter/gccgoinstallation_test.go

    	"image/color",
    	// "image/color/palette", // Added in GCC 4.9.
    	"image/draw",
    	"image/gif",
    	"image",
    	"image/jpeg",
    	"image/png",
    	"index/suffixarray",
    	"io",
    	"io/ioutil",
    	"log",
    	"log/syslog",
    	"math/big",
    	"math/cmplx",
    	"math",
    	"math/rand",
    	"mime",
    	"mime/multipart",
    	"net",
    	"net/http/cgi",
    	// "net/http/cookiejar", // Added in GCC 4.8.
    	"net/http/fcgi",
    	"net/http",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 21 02:25:41 UTC 2021
    - 4K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/link_syso_deps.txt

    func F() {
    	C.f()
    }
    
    func G() {
    	C.g()
    }
    
    -- cgo/x2.go --
    package cgo
    
    import _ "m/syso"
    
    -- syso/x.c --
    //go:build ignore
    
    void f() {}
    
    -- syso/x.go --
    package syso
    
    import _ "m/syso2"
    
    -- syso2/x.c --
    //go:build ignore
    
    void g() {}
    
    -- syso2/x.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 742 bytes
    - Viewed (0)
  9. src/cmd/vet/testdata/slog/slog.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file contains tests for the slog checker.
    
    package slog
    
    import "log/slog"
    
    func SlogTest() {
    	slog.Info("msg", "a") // ERROR "call to slog.Info missing a final value"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 18:11:19 UTC 2023
    - 338 bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/slog/slog.go

    		}
    	})
    	return nil, nil
    }
    
    func isAttr(t types.Type) bool {
    	return analysisutil.IsNamedType(t, "log/slog", "Attr")
    }
    
    // shortName returns a name for the function that is shorter than FullName.
    // Examples:
    //
    //	"slog.Info" (instead of "log/slog.Info")
    //	"slog.Logger.With" (instead of "(*log/slog.Logger).With")
    func shortName(fn *types.Func) string {
    	var r string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top