Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileOutputFunc ¶
FileOutputFunc returns an output function that writes log messages to the specified file path, overwriting the file if it exists.
func Jattach ¶
func Jattach(option JattachOption) int
Jattach performs the attach operation to a Java process specified by the JattachOption.
Types ¶
type JattachOption ¶
func ParseJattachFlags ¶
func ParseJattachFlags(args []string) (JattachOption, error)
ParseJattachFlags parses flags for the "jattach" command and returns the corresponding JattachOption.
func (*JattachOption) JattachValidate ¶
func (opt *JattachOption) JattachValidate() error
JattachValidate validates the JattachOption fields.
type JpsOption ¶
type JpsOption struct {
User string
ShowLong bool // -l
ShowVMArgs bool // -v
ShowArgs bool // -m
Quiet bool // -q
}
func ParseJpsFlags ¶
ParseJpsFlags parses flags for the "jps" command and returns the corresponding JpsOption.
func (*JpsOption) JpsValidate ¶
JpsValidate checks if the JpsOption fields are valid. Currently, it validates the User field if provided.
type JvmProcess ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a configurable logging utility. By default, it outputs to the console in a pretty format.