Logtalk APIs Logo
3.100.0

Contents

  • Libraries
    • adaptive_boosting_classifier
    • agglomerative_clusterer
    • amqp
    • anomaly_detection_protocols
    • application
    • apriori_pattern_miner
    • arbitrary
    • arrangements
    • assertions
    • assignvars
    • avro
    • base32
    • base58
    • base64
    • base85
    • bayesian_ridge_regression
    • borda_ranker
    • bradley_terry_ranker
    • c45_classifier
    • cartesian_products
    • cbor
    • ccsds_frames
    • ccsds_link_profiles
    • ccsds_packet_services
    • ccsds_packetization
    • ccsds_packets
    • ccsds_tc_services
    • ccsds_time_codes
    • ccsds_time_fields
    • character_sets
    • classification_protocols
    • clo_span_pattern_miner
    • clustering_protocols
    • code_metrics
    • colley_ranker
    • combinations
    • command_line_options
    • copeland_ranker
    • core
    • coroutining
    • crs_projections
    • csv
    • cuid2
    • cusum_anomaly_detector
    • datalog
    • dates
    • dates_tz
    • dbscan_clusterer
    • dead_code_scanner
    • debug_messages
    • debugger
    • dependents
    • deques
    • derangements
    • diagrams
    • dictionaries
    • dif
    • dimension_reduction_protocols
    • doclet
    • eclat_pattern_miner
    • edcg
    • elastic_net_regression
    • elo_ranker
    • events
    • ewma_anomaly_detector
    • expand_library_alias_paths
    • expecteds
    • fcube
    • flags
    • format
    • fp_growth_pattern_miner
    • frequent_pattern_mining_protocols
    • gaussian_mixture_clusterer
    • gaussian_process_regression
    • genint
    • gensym
    • geohash
    • geojson
    • geospatial
    • git
    • glicko2_periodic_ranker
    • glicko2_ranker
    • gradient_boosting_classifier
    • gradient_boosting_regression
    • grammars
    • graphs
    • gsp_pattern_miner
    • hashes
    • hdbscan_clusterer
    • heaps
    • help
    • hierarchical_clustering
    • hierarchies
    • hmac
    • hodge_rank
    • hook_flows
    • hook_objects
      • backend_adapter_hook
      • default_workflow_hook
      • grammar_rules_hook
      • identity_hook
      • object_wrapper_hook
      • object_wrapper_hook(Protocol)
      • object_wrapper_hook(Name,Relations)
      • print_goal_hook
      • prolog_module_hook(Module)
      • suppress_goal_hook
      • write_to_file_hook(File)
      • write_to_file_hook(File,Options)
      • write_to_stream_hook(Stream)
      • write_to_stream_hook(Stream,Options)
    • html
    • ica_projection
    • ids
    • ieee_754
    • intervals
    • iqr_anomaly_detector
    • iso8601
    • iso_13616
    • iso_3166
    • iso_4217
    • iso_639
    • iso_9362
    • isolation_forest_anomaly_detector
    • issue_creator
    • java
    • json
    • json_ld
    • json_lines
    • json_pointer
    • json_rpc
    • json_schema
    • kcenters_clusterer
    • kemeny_young_ranker
    • kernel_pca_projection
    • kernel_svm_classifier
    • kmeans_clusterer
    • kmedians_clusterer
    • kmedoids_clusterer
    • kmodes_clusterer
    • knn_classifier
    • knn_distance_anomaly_detector
    • knn_regression
    • kprototypes_clusterer
    • ksuid
    • lasso_regression
    • lda_classifier
    • lda_projection
    • lgtdoc
    • lgtunit
    • library
    • linda
    • linear_algebra
    • linear_regression
    • linear_svm_classifier
    • linter_reporter
    • listing
    • lof_anomaly_detector
    • logging
    • logistic_regression_classifier
    • loops
    • massey_ranker
    • mcp_server
    • memcached
    • message_pack
    • meta
    • meta_compiler
    • metagol
    • mime_types
    • modified_z_score_anomaly_detector
    • multisets
    • mutation_testing
    • mutations
    • naive_bayes_classifier
    • nanoid
    • nearest_centroid_classifier
    • nested_dictionaries
    • nmea
    • nmf_projection
    • optics_clusterer
    • optionals
    • options
    • os
    • packs
    • partitions
    • pattern_mining_protocols
    • pca_projection
    • pddl_parser
    • permutations
    • plackett_luce_last_ranker
    • plackett_luce_ranker
    • pls_projection
    • ports_profiler
    • prefix_span_pattern_miner
    • probabilistic_pca_projection
    • process
    • protobuf
    • qda_classifier
    • queues
    • random
    • random_forest_classifier
    • random_forest_regression
    • random_projection
    • rank_centrality
    • ranked_pairs
    • ranking_protocols
    • reader
    • recorded_database
    • redis
    • regression_protocols
    • regression_tree
    • regularized_bradley_terry_ranker
    • ridge_regression
    • sarif
    • sbom
    • schulze_ranker
    • sequential_pattern_mining_protocols
    • sets
    • sgd_classifier
    • simulated_annealing
    • snowflakeid
    • sockets
    • spade_pattern_miner
    • statistics
    • stemming
    • stomp
    • string_distance
    • strings
    • subsequences
    • term_io
    • thurstone_mosteller_ranker
    • time_scales
    • timeout
    • tle_orbits
    • toml
    • tool_diagnostics
    • toon
    • toychr
    • truncated_svd_projection
    • tsv
    • tutor
    • types
    • tzif
    • ulid
    • union_find
    • url
    • uuid
    • validations
    • verdi_neruda
    • wkt_wkb
    • wrapper
    • xml_parser
    • yaml
    • z_score_anomaly_detector
    • zippers
  • Directories
  • Entities
  • Predicates
  • Core diagram
  • Libraries diagram
  • Tools diagram
  • Ports diagram
  • Contributions diagram
  • Index

External Contents

  • Handbook
  • Logtalk website
  • GitHub repo
Logtalk APIs
  • Libraries
  • print_goal_hook
  • View page source

object

print_goal_hook

Use this object to easily print entity predicate goals before, after, or before and after calling them.

Availability:
logtalk_load(hook_objects(loader))
Author: Paulo Moura
Version: 1:0:0
Date: 2020-03-14
Compilation flags:
static, context_switching_calls
Implements:
public expanding
Remarks:
  • Usage: Mark a goal to be printed by prefixing it with an operator. Printing uses a comment message.

  • To print goal before calling it: - Goal.

  • To print goal after calling it: + Goal.

  • To print goal before and after calling it: * Goal.

  • Operators: This hook object uses the standard - and + prefix operators and also defines a global * prefix operator with the same type and priority.

Inherited public predicates:
 goal_expansion/2  term_expansion/2
  • Public predicates

  • Protected predicates

  • Private predicates

  • Operators

Public predicates

(no local declarations; see entity ancestors if any)

Protected predicates

(no local declarations; see entity ancestors if any)

Private predicates

(no local declarations; see entity ancestors if any)

Operators

(none)

See also

backend_adapter_hook, default_workflow_hook, grammar_rules_hook, identity_hook, prolog_module_hook(Module), object_wrapper_hook, write_to_stream_hook(Stream,Options), write_to_stream_hook(Stream), suppress_goal_hook

Previous Next

© Copyright 1998-2026, Paulo Moura.

Built with Sphinx using a theme provided by Read the Docs.