Logo
Explore Help
Register Sign In
External/nuclei
1
0
Fork 0
You've already forked nuclei
mirror of https://github.com/projectdiscovery/nuclei.git synced 2025-12-17 23:05:26 +00:00
Code Issues Packages Projects Releases Wiki Activity
nuclei/pkg/utils/capture_writer.go

17 lines
275 B
Go
Raw Permalink Normal View History

Support concurrent Nuclei engines in the same process (#6322) * support for concurrent nuclei engines * clarify LfaAllowed race * remove unused mutex * update LfaAllowed logic to prevent races until it can be reworked for per-execution ID * Update pkg/templates/parser.go Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * debug tests * debug gh action * fixig gh template test * using atomic * using synclockmap * restore tests concurrency * lint * wiring executionId in js fs --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Mzack9999 <mzack9999@protonmail.com>
2025-07-18 13:40:58 -05:00
package utils
import (
"bytes"
"github.com/projectdiscovery/gologger/levels"
)
// CaptureWriter captures log output for testing
type CaptureWriter struct {
Buffer *bytes.Buffer
}
func (w *CaptureWriter) Write(data []byte, level levels.Level) {
w.Buffer.Write(data)
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.6 Page: 64ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API