"Through William Laidlaw [Hogg] was also helping to provide assistance in collecting traditional ballads for the third volume of Walter Scott's Minstrelsy of the Scottish Border (1803), and in 1802 Laidlaw was instrumental in setting up a meeting in Ettrick between Hogg and Scott. A friendship developed that was to last until Scott's death in 1832" (ODNB). Scott encouraged Hogg to publish The Mountain Bard and The Shepherd's Guide in 1807.
"As a rival of Scott and Byron among the fashionable poets of the 1810s he produced a formidable output in the years following the publication of The Queen's Wake. The third edition of that poem (1814) contains important revisions and was followed in 1815 by Pilgrims of the Sun, dedicated to Byron. Two new volumes followed in 1816: Mador of the Moor, which echoes and interrogates Scott's Lady of the Lake; and The Poetic Mirror, a volume of Hogg's brilliant and well-received poetic parodies (of Wordsworth, Coleridge, Byron, Scott, Hogg, and others [Southey, Wilson])" (ODNB).
Hogg published Familiar Anecdotes of Sir Walter Scott (1834) after Scott's death.
See also: "Sir Walter Scott and James Hogg" (walterscott.lib.ed.ac.uk)