📂 FileMgr
📍
/
opt
/
golang
/
1.22.0
/
src
/
log
/
syslog
✏️ /
⬅ Kembali
// Copyright 2016 The Go Authors. All rights reserved. // 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_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.") }
💾 Simpan
Batal
⬅ log
5 item
Nama
Tipe
Ukuran
Diubah
Aksi
🔵
doc.go
go
935 B
2024-02-02 18:09
✏️
👁️
🔤
🗑
🔵
example_test.go
go
541 B
2024-02-02 18:09
✏️
👁️
🔤
🗑
🔵
syslog.go
go
7.5 KB
2024-02-02 18:09
✏️
👁️
🔤
🗑
🔵
syslog_test.go
go
9.6 KB
2024-02-02 18:09
✏️
👁️
🔤
🗑
🔵
syslog_unix.go
go
758 B
2024-02-02 18:09
✏️
👁️
🔤
🗑
✏️ Rename
Nama Baru
Simpan
Batal